in reply to Re: Matching and making accesible an arbitrary number of subpatterns w/a regex?
in thread Matching and making accesible an arbitrary number of subpatterns w/a regex?

Splitting on the colon, you say?
my $src_string = 'aaa:bbb:ccc:ddd:eee:'; my @results = split /:/, $src_string; pop @results;

Update: Oops, I missed the last line of the OP. Well, neither solution populates $1, $2, $3, so I guess neither answers the OP.

  • Comment on Re^2: Matching and making accesible an arbitrary number of subpatterns w/a regex?
  • Download Code