in reply to Limiting search on RegEx

Use substr on the left hand side of the regular expression.