Menu

#4008 5.3.1 doesn't do extended regex not function (?!___)

minor bug
closed-invalid
nobody
None
5
2016-09-20
2016-07-27
No

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&

Discussion

  • Jim Michaels

    Jim Michaels - 2016-07-27

    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
  • Dale Anson

    Dale Anson - 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&

     
  • Dale Anson

    Dale Anson - 2016-09-20
    • status: open --> closed-invalid
     

Log in to post a comment.