in reply to Re: Regex code block executes twice per match using look-arounds
in thread Regex code block executes twice per match using look-arounds
Exploring quantifiers with code blocks could be very interesting.
$ perl -le ' > $str = q{abc}; > $str =~ m{(b)(?{print qq{Match $1}}){3}};' Match b Match b Match b $
Thanks again,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex code block executes twice per match using look-arounds
by BrowserUk (Patriarch) on Jul 12, 2007 at 22:17 UTC |