![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: regexp to check if file name matches patternby Marshall (Canon) |
on Feb 24, 2009 at 23:22 UTC ( [id://746141]=note: print w/replies, xml ) | Need Help?? |
An alternate solution (there are many):
A set of characters is enclosed in []. \w are the "word chars" and we add the "dot" to that set by \w.+. Same idea with 0-9.+. Other solution that has [^%]+ is good too. That means anything except %. Take your pick.
In Section
Seekers of Perl Wisdom
|
|