in reply to Controlling matching position in regexes to match all proper substrings
IIRC it's \G, so /(a\Ga)/g should do.
Have a look at perlre and perlretut .
Otherwise pos can be used in a while loop to read and set the next search start position.
Just subtract the length of your pattern from pos and add 1 to continue.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Controlling matching position in regexes to match all proper substrings
by LanX (Saint) on Oct 04, 2014 at 14:25 UTC |