in reply to general regex question

Uhmm, it's difficult to answer if you don't explain what's inside $mystring: the regex could be correct or not depending on this. Could you post all the relevant parts of the code you've written?

Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

Don't fool yourself.