One way to do it.
DB<1> $_ = 'ActionLogs.1.2.3.4.5.6.7.8.9.xml' DB<2> x split ' ', tr/.[a-zA-Z]/ /dr 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 DB<3>
Update: The brackets are unnecessary; tr/.a-zA-Z/ /dr works just as well.
In reply to Re^3: RegEx Headaches
by farang
in thread RegEx Headaches
by oryx3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |