After reading polygenelubricants\'s series of articles on advanced regular expressions techniques (particularly How does this Java regex detect palindromes?), I decided to a
In case you would like a fully functional PCRE expression to match palindromes, you can use the following:
/^(?:(.)(?=.*(\1(?(2)\2))$))*+.?\2?$/