Perl Monk, Perl Meditation | |
PerlMonks |
in reply to text extraction question
my $templateformat = 'w<NM>b<NM>cm<CH>sw<SW>'; my $inputexample = 'w8b8cm512swno'; my @splittemplate = split /[^A-Z]+/,$templateformat;
Update:my @splitinput = split /[^(\d)(no)]+/,$inputexample;
|
---|