reverse and regex