Palindrome regular expression
Posted by Raj
Palindrome regular expression
A palindrome is a word that is same from front to back and back to front. e.g. Noon
Search for two identical letters, use "\([a-z]\)\1".
The regular expression to match a 5 letter palindrome:
\([a-z]\)\([a-z]\)[a-z]\2\1
A palindrome is a word that is same from front to back and back to front. e.g. Noon
Search for two identical letters, use "\([a-z]\)\1".
The regular expression to match a 5 letter palindrome:
\([a-z]\)\([a-z]\)[a-z]\2\1
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
palindrome,
palindrome regular expression,
palindrome regular expression example,
palindrome regular expression perl
.You can leave a response, or trackback from your own site.