Use substr on the left hand side of the regular expression.
In reply to Re: Limiting search on RegEx by Corion in thread Limiting search on RegEx by mr_p