But another approach that I've used in environments (like Emacs) that don't have negative lookaheads is:
or/if([^f]|$)/
to ensure nothing is returned in $1 should the regex match./if(?:[^f]|$)/
In reply to Re^2: regex problem
by monarch
in thread regex problem
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |