Change the regexes if your data needs more complex parsing.my ($word, $number) = split /(?<=\D)(?=\d)/; my ($word, $number) = /^(\D+)(\d+)$/;
In reply to Re: How do I split a string which has letters then numbers?
by Juerd
in thread How do I split a string which has letters then numbers?
by lucasdmc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |