in reply to RegEx - match pattern not followed by literal
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RegEx - match pattern not followed by literal
by Melly (Chaplain) on Oct 12, 2006 at 15:45 UTC | |
by Fletch (Bishop) on Oct 12, 2006 at 16:30 UTC | |
by blazar (Canon) on Oct 12, 2006 at 18:01 UTC |