in reply to Matching and making accesible an arbitrary number of subpatterns w/a regex?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching and making accesible an arbitrary number of subpatterns w/a regex?
by Hue-Bond (Priest) on Aug 03, 2006 at 17:36 UTC | |
by ikegami (Patriarch) on Aug 03, 2006 at 17:43 UTC | |
|
Re^2: Matching and making accesible an arbitrary number of subpatterns w/a regex?
by ikegami (Patriarch) on Aug 03, 2006 at 17:34 UTC |