in reply to pattern matching with large regex
My feeling however is that this will be much slower.
Another alternative would be to hand-craft the regex by taking into account the same or similar chunks in each of the alternatives. The writing of the regex will take much more time and I'm not sure if such a more elaborate (but shorter) regex will work faster than a simple bunch of alternatives.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pattern matching with large regex
by Tanktalus (Canon) on Aug 13, 2005 at 17:59 UTC | |
by CountZero (Bishop) on Aug 13, 2005 at 18:17 UTC | |
|
Re^2: pattern matching with large regex
by fishbot_v2 (Chaplain) on Aug 13, 2005 at 17:55 UTC |