in reply to
Re^4: Regex for files
in thread
Regex for files
The original is ambiguous on whether multiple digits are acceptable. If they are, then
/^messages(\.|\.\d+)?$/
will work.
Comment on
Re^5: Regex for files
Download
Code
In Section
Seekers of Perl Wisdom