Perl Monk, Perl Meditation | |
PerlMonks |
Re: problems splitting stringby VSarkiss (Monsignor) |
on Dec 15, 2005 at 16:05 UTC ( [id://517000]=note: print w/replies, xml ) | Need Help?? |
You want to split on a space only if followed by a digit, correct? This will do the trick: If there can be more than one digit, change that to: You can find more on zero-width assertions in perlre.
In Section
Seekers of Perl Wisdom
|
|