in reply to regex to reverse string

Instead of a regex, just use reverse e.g
my $str = reverse 'a string'; print $str; __output__ gnirts a
Make sure you're using it in scalar context though if you want to reverse a string. See. the reverse docs for more info.
HTH

_________
broquaint