notepad4
notepad4 copied to clipboard
Regex: special case `^` and `$` require special treatment
a8471540
- Continuous search after found, requires one extra move;
Select Alldoes not work yet.
^ and $ seems is working, what's the test case?
Yes, your example works, and the special cases are:
- only
^or$, to quickly select the beginning or ending of lines, especially the ending; ^and$, to select empty lines.
"Find All" works, other actions don't.
empty matches are skipped: https://github.com/zufuliu/notepad4/blob/10605475bd597620f0d124a747f36702524e03fa/src/Edit.cpp#L5480-L5489
https://github.com/zufuliu/notepad4/blob/10605475bd597620f0d124a747f36702524e03fa/src/Edit.cpp#L5590-L5595