5.3.1 doesn't do extended regex not function (?!___). Java latest,vista32 for example, find regex of (!V)S& replace with S where source code contains VS&
that should be (?!V)S& expected: should not find S& with a preceding V. actual: finds S& in VS& when It should not.
You're trying to find S& that doesn't have a V in front of it, so you should be using a look behind rather than a look ahead. Try this: (?<!V)S&
Log in to post a comment.
that should be (?!V)S&
expected: should not find S& with a preceding V.
actual: finds S& in VS& when It should not.
Last edit: Jim Michaels 2016-07-28
You're trying to find S& that doesn't have a V in front of it, so you should be using a look behind rather than a look ahead. Try this: (?<!V)S&