See perldoc perlre.
If I understand you correctly, you need to distinguish between If followed by f, and If followed by something other than f ?
The following regex will only match If but not Iff:
/^If[^f]/Apologies if I've got the wrong end of the stick here.
In reply to Re: regex problem
by muntfish
in thread regex problem
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |