Added regex_reverse functionality