You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by Dean Arnold <da...@presicient.com> on 2003/04/25 23:24:49 UTC

Global matches, eq, @matches = ($str=~/('[^']+')/g)

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



---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org