flip a regular expression. allows you to efficiently search backwards.