in reply to Separating substrings from a main string
Give that a whirl.my $string=qq(> abcd1234 abcd abcd >xyz123 xyz); $string =~s/[\s\n]+//g; #squash out the whitespace and newlines my @f=split(/[\>]/,$string; # CAVEAT: just wrote the off the top of my head...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Separating substrings from a main string
by newbie1991 (Acolyte) on Jan 24, 2013 at 14:29 UTC | |
by blue_cowdawg (Monsignor) on Jan 24, 2013 at 14:55 UTC |