good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: regex problemby rev_1318 (Chaplain) |
on Jun 08, 2005 at 10:20 UTC ( [id://464622]=note: print w/replies, xml ) | Need Help?? |
The regex /^If?/ matches both your cases because you're looking for I followed by 0 or more f's Actually, that's 0 or 1 f's, not 0 or more :) (but who's counting) Paul
In Section
Seekers of Perl Wisdom
|
|