Catch the regex after the rewrite keyword