http://qs1969.pair.com?node_id=1039865


in reply to Re^2: RegEx Headaches
in thread RegEx Headaches

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.