in reply to Re^3: Composing regex's dynamically
in thread Composing regex's dynamically
I would not expect the -xism part to cost anything over the (?: ) without that. Again, that makes me wonder if re-compiling the string is worse than incorporating a compiled regex in another qr. Naturally, being able to leave off the parens completely simplifies things.
The regex engine has improved its optimizations in successive versions of Perl too; I think I read something about that in either the 5.10 or 5.12 notes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Composing regex's dynamically
by JavaFan (Canon) on Apr 29, 2011 at 09:51 UTC | |
by John M. Dlugosz (Monsignor) on Apr 30, 2011 at 08:40 UTC | |
by JavaFan (Canon) on Apr 30, 2011 at 13:12 UTC | |
by Anonymous Monk on Apr 30, 2011 at 13:18 UTC |