in reply to
Yes, you answered the question correctly. Unfortunately, it was the wrong question. (That's my fault, not yours.)
I should have added: the filename can have _one or more_ digit groups separated by periods in the middle. I want to extract them ALL!
So, for example:
I thought the g would do that, but I guess not.
One way to do it.
DB<1> $_ = 'ActionLogs.126.96.36.199.188.8.131.52.9.xml'
DB<2> x split ' ', tr/.[a-zA-Z]/ /dr
Update: The brackets are unnecessary; tr/.a-zA-Z/ /dr works just as well.
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (225 votes),