[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OT: regular expression question



i know how to search for palindromes, for instance, a 3 letter palindrome:

	\(.\)\(.\)\(.\)\3\2\1

recently, i started wondering if there was a way, using regex only, to
express a palindrome of arbitrary letter length?

i've used some grey matter, and the answer seems to be no, but there's nice
symmetry here.  maybe i'm missing something...

pete

Attachment: pgpZHD9ZzJTVk.pgp
Description: PGP signature


Reply to: