Skip to main content

Any sequence of units (typically letters or numbers) that are read the same way forward or backward.

Spacing, punctuation, and other such characters are generally ignored when determining whether or not a phrase is a palindrome.

Example:

A Man, A Plan, A Canal: Panama!

amanaplanacanalpanama

There are certain websites dedicated to listing examples of palindromes, and could be used as sample data if testing needs to be done for your script.