[wplug] OT: Emacs, regular expressions and syntax highlighting
Brian Sammon
wplug-list at brisammon.fastmail.fm
Wed Apr 3 03:01:02 EDT 2013
> Foo that is not following 'no ':
> (?<!no )foo
>
> Foo that is following neither 'no ' nor 'no evidence of':
> (?:(?<!no )|(?<!no evidence of ))foo
I don't think this will work the way he wants -- because you have it doing
(?<!no ) OR (?<!no evidence of ) .
I think the following would work:
(?<!no(?: evidence of)? )foo
More information about the wplug
mailing list