in reply to Re^2: 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?

It seems to me from the OP's description that it will always end in a semi-colon. If not, add it:
my $src_string = 'aaa:bbb:ccc:ddd:eee'; my @results = "$src_string:" =~ /([^:]*):/g;
  • Comment on Re^3: Matching and making accesible an arbitrary number of subpatterns w/a regex?
  • Download Code