Aside from the chorus of `use reverse', it's already been done.
In reply to Re: regex to reverse string by Fletch in thread regex to reverse string by jai