in reply to Re: regex problemin thread regex problem
But another approach that I've used in environments (like Emacs) that don't have negative lookaheads is:
/if([^f]|$)/ [download]
/if(?:[^f]|$)/ [download]