I'm trying to create a Python regular expression that will match a string if and only if that string begins and ends with the same lower-case letter. The following seems like it ought to work, but matches every string:
(?P<st>[a-z]).*(?P=st)$
Any suggestions will be appreciated.