Fixed issue with rev regex