in reply to regex problem
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.
|
|---|