|P is for Practical
I can't wait to get home and play with this, in the meantime please accept the ++ and this note ;)
sexeger? we can't allow that. Too pseudo-dirty for such clear thinking. And is that the plural? Should the singular form be exeger? What we need is a better name, like "revex". Come on this is a language with Linguistics at the heart of it =)
On a more serious note this should be a hack in the "re" code itself. Implement it with a "r" flag. Just have it go thru the string from back to front for me and I'll rewrite the regex myself. Having all the tools available from the regular engine just eating the string backwards would make me happy.
If it can be made to do the whole she-bang that japhy promotes here, should it also auto flip on the flag in the case of $a =~ m/letters$/; I know that a great deal of end terminated optimizing has been done. Could that be simplified away with this and the regular forward optimizing that is done on $a=~ m/^letters/; style regexes?
This is making my head spin, back to CGI =)