Do you hear that, Mr. Anderson? That's the sound of premature optimization . . .
The overhead in it being two regexen is so likely trivial as to not be worth the effort. Not to mention you could probably get more of a boost by rearranging the cases so the trivial presence of /,v$/ is checked first before bothering to go on to the user's regex.
In reply to Re: RegEx - match pattern not followed by literal
by Fletch
in thread RegEx - match pattern not followed by literal
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |