Splitting on the colon might be your best bet if the nature of your data is field-delimited, but you should also be able to achieve the same with:
my $src_string = 'aaa:bbb:ccc:ddd:eee:'; my @results = $src_string =~ /([^:]*):/g;
Hope this helps,
-v.
In reply to Re: Matching and making accesible an arbitrary number of subpatterns w/a regex?
by Velaki
in thread Matching and making accesible an arbitrary number of subpatterns w/a regex?
by rojam74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |