Global matches, eq, @matches = ($str=~/('[^']+')/g)
"Dean Arnold" <[email protected]> Fri, 25 Apr 2003 14:24:49 -0700
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <000b01c30b71$1bf11420$0d00a8c0@luckplane> |
It doesn't appear that Perl5Util supports the global match (except in substitute)...any idea how difficult it would be to implement ? I'd expect it would operate such that Perl5Util.match() was called just once, and then Perl5Util.groups() would return the number of times the pattern was matched, and you could iterate over Perl5Util.group(n) to extract each matched instance... If I'm overlooking some method that already does this, I'd appreciate any pointers... Regards, Dean Arnold Presicient Corp. www.presicient.com