notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

Case insensitive search and regex

Open ritmation opened this issue 3 years ago • 1 comments

It seems that case insensitive search with regex option enabled works only with ASCII characters.

For example, if you enter the following text into a document:

"Ä, Ö, Ü on a German computer keyboard"

and then try to search for "ä" with "Regular expression search" enabled and "Match case" disabled, the search terminates with a message "The specified text was not found."

Expected behavior: searching for lowercase "ä" with "Match case" option disabled should also find uppercase "Ä" if the option "Match case" is disabled, regardless of whether normal or regex search if performed.

ritmation avatar Jun 20 '22 03:06 ritmation

Yes, this is the limitation of Scintilla's builtin POSIX regex.

zufuliu avatar Jun 20 '22 03:06 zufuliu