Hello, @mkupper and All,
Refer to the this post in order to correctly use the free-spacing mode :
https://community.notepad-plus-plus.org/post/61100
IMPORTANT :
Multi-lines free-spacing regexes, like, for example :
(?x-i)
^ \x20 \x20 abc # String 'abc' with LEADING spaceq
| # or
^ \x20 \x20 def # String 'def' with LEADING spaces
Works correctly, ONLY IF you click on :
The Find Next or the Count button of the Find dialog
The Replace or the Replace All button of the Replace dialog
The Mark All button of the Mark dialog
It will fail if you click on :
The Find All in Current document button, of the Find diaog
The Find All in All Opened Documents button, of the Find dialog
The Find All button, of the Find in Files dialog
The Find All button, of the Find in Projects dialog
In addition, it wrongly switches the search mode to the Extended mode
Instead, when using these buttons, you’ll have to use, either :
A free-spacing regex, on a single line, ONLY, as, for example, the regex (?x-i) ^ \x20 \x20 abc | ^ \x20 \x20 def
The simple regex (?-i)^\x20\x20abc|^\x20\x20def, with all text attached
Refer to my GitHub issue :
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12673
Best Regards,
guy038