in reply to Regex: continue from previous match
Then don't use \G
while ('abxxxacxxxad' =~ /a(.)/g) { say $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: continue from previous match
by John M. Dlugosz (Monsignor) on Apr 23, 2011 at 08:02 UTC | |
by ikegami (Patriarch) on Apr 23, 2011 at 08:07 UTC |