NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

Regex doesn't work correctly

Open Schmarotzer opened this issue 1 year ago • 1 comments

for example: text file: asdasd asdasd

Search with regex: ^[A-Za-z]

will find 6 results, but must be only one

Schmarotzer avatar Aug 28 '23 17:08 Schmarotzer

Thanks for the report!

Looks like it is treating the "start" of the next search location as the "start" of a line (^).

dail8859 avatar Aug 29 '23 12:08 dail8859

@dail8859 It seems there is a bug in Scintilla implementation of regexp. I want to include PCRE2 in project (and lua bindings for it) as best implementation and because QRegExp is weaker.

SimLV avatar May 08 '24 18:05 SimLV

@SimLV Agree that something better needs to be done with the regex engine.

See https://github.com/dail8859/NotepadNext/issues/500#issuecomment-1908485748 for a more indepth discussion.

dail8859 avatar May 08 '24 18:05 dail8859

I think this could be closed in favor of #500

SimLV avatar May 08 '24 18:05 SimLV

Agreed.

dail8859 avatar May 08 '24 18:05 dail8859