The stupid question is the question not asked | |
PerlMonks |
Re: pattern matching questionby DigitalKitty (Parson) |
on Jun 20, 2003 at 17:19 UTC ( [id://267659]=note: print w/replies, xml ) | Need Help?? |
Hi jxia.
The '*' quantifier matches as many characters as it can (zero or more). The '.' implies any character except a newline. You can disable greediness by including a '?' to the end of your regex pattern. Suggestion: Don't use '#' in a pattern match or replacement. It looks like a comment and can frustrate debugging efforts. Hope this helps, -Katie.
In Section
Seekers of Perl Wisdom
|
|