No such thing as a small change | |
PerlMonks |
Re: regex problemby robartes (Priest) |
on Jun 08, 2005 at 09:41 UTC ( [id://464614]=note: print w/replies, xml ) | Need Help?? |
You're probably looking for something along these lines: /^If[^f]/ # If followed by anything that is not fThe regex /^If?/ matches both your cases because you're looking for I followed by 0 or Update: rev_1318 is right, of course (see this node) CU
In Section
Seekers of Perl Wisdom
|
|