![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: regexp to check if file name matches patternby davido (Cardinal) |
on Feb 24, 2009 at 22:34 UTC ( [id://746131]=note: print w/replies, xml ) | Need Help?? |
Lol, I had no way of knowing that your date field was "dot delimited." My solution would naturally reject that. Here's a new approach that should do the trick given that new, previously unmentioned requirement.
Let me know how that works out. This time I'm specifically allowing the 'dot' delimiter in the date field. This solution is going to result in some backtracking though. It might be better written as:
This will get less backtracking, and thus should be a little more efficient, if that matters. Dave
In Section
Seekers of Perl Wisdom
|
|