in reply to Re^2: question about reg exp engine
in thread question about reg exp engine
yes I have a typo in the post. It shoud be ^\s, but that still doesn't give me an answer.If you fix that typo and then run Benchmarks, I think you will see that they are about the same speed. I see speed differences of 0-3% with the typo fixed, and 20-25% with the typo in place.... probably because some optimization is possible when the regex says "beginning of string" and not '^' in an arbitrary place in the string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: question about reg exp engine
by GrandFather (Saint) on Aug 04, 2008 at 00:04 UTC | |
by broomduster (Priest) on Aug 04, 2008 at 00:11 UTC | |
by GrandFather (Saint) on Aug 04, 2008 at 00:24 UTC | |
by broomduster (Priest) on Aug 04, 2008 at 00:43 UTC |