in reply to regex only matching from last match
The match operator with the /g option will match all the patterns if it is used in list context. However, when used in scalar context it iterates through each pattern in turn, which is what you are experiencing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex only matching from last match
by AnomalousMonk (Archbishop) on Sep 20, 2009 at 02:41 UTC | |
by Foxpond Hollow (Sexton) on Sep 24, 2009 at 16:44 UTC |