split allows to specify a regular expression. For your application something like split /(\d+)/ should work. You need to put the regex into parentheses as you want to keep the numbers.
In reply to Re: Split with numbers
by hdb
in thread Split with numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |