Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4873 regex (?!) ignored

1.x
open
nobody
None
5
2014-06-17
2014-06-17
Jim Michaels
No

target text: .0001pt
search: (?![.1-9])00(?!01pt)
expected: find 00 but not .0001pt or 100
actual: finds .0001pt or anything with a 00 in it. (?!) is being ignored by regex search ctrl-f.

the ECMAScript regex type in std::regex supports this, and probably others too.
http://www.cplusplus.com/reference/regex/ECMAScript/
it's basically a regex NOT operator.

Discussion