in reply to Re^2: Problem with capturing all matches with regex
in thread Problem with capturing all matches with regex
I wanted to use embedded code ... Now I can optimize a lot of my regexes with it.
Beware. Such "optimization" is often a snare and a delusion. Many times it is more conducive to efficiency to understand how the Perl regex engine captures and returns groups and to take advantage of these inherent mechanisms. Also be aware that previous to Perl version 5.18 (I think), there existed a bug that caused weird interactions between embedded regex code and "external" (if that's the right term) my variables.
OTOH of course, sometimes embedded code is just the only way to do it. :)
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem with capturing all matches with regex
by Anonymous Monk on Oct 12, 2016 at 17:52 UTC | |
|
Re^4: Problem with capturing all matches with regex
by igoryonya (Pilgrim) on Oct 13, 2016 at 01:37 UTC | |
by duelafn (Parson) on Oct 13, 2016 at 09:07 UTC | |
by igoryonya (Pilgrim) on Oct 15, 2016 at 07:20 UTC | |
by hippo (Archbishop) on Oct 15, 2016 at 10:01 UTC | |
by igoryonya (Pilgrim) on Oct 15, 2016 at 14:39 UTC |