Just another Perl shrine | |
PerlMonks |
Re: Pattern matchby SamCG (Hermit) |
on Jan 17, 2006 at 21:46 UTC ( [id://523845]=note: print w/replies, xml ) | Need Help?? |
I might add the "Difflist.txt" portion of your pattern will match Difflist.txt, Difflistntxt, or Difflist&txt. If you mean a literal dot, you either need to escape it or (as another poster did) put it into a character class. A character class is a grouping of possible characters you're looking for, surrounded by square brackets. [0-9.], for example, would look for any digit or the literal period.
In Section
Seekers of Perl Wisdom
|
|