![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: regexp to check if file name matches patternby davido (Cardinal) |
on Feb 24, 2009 at 22:07 UTC ( [id://746123]=note: print w/replies, xml ) | Need Help?? |
Perhaps this:
Matches SYS followed by any non % character(s) that are followed by a % (can be repeated), followed by just about anything except a dot (.) (that's where the date field goes), followed by dot pdf. Update: /i added, because when I see SYS and .pdf (upper, and lower) I start thinking that case probably shouldn't be allowed to foul up a match. Dave
In Section
Seekers of Perl Wisdom
|
|