in reply to
split question
put the delimiter (here: one or more digits) in parentheses, that also returns the delimiters:
my $str = "4sheet1rev11"; my @arr = split(/(\d+)/, $str);
[download]
note, that you have an empty string at the beginnig of the array, since your string starts with a digit.
cheers
sc
Comment on
Re: split question
Download
Code
In Section
Seekers of Perl Wisdom