Hi,
In SciTE 3.6.5 on Linux Fedora platform, if I replace the beginning of all lines of a file with the regexp ^ symbol in the replace dialog, then lines after empty lines are ignored and not replaced.
e.g.: I write a file containing three lines:
aaa
bbb
then in the replace dialog window, I type ^ in the "Find what" field and CCC in the "Replace with" field and I select "Regular expression".
The result of the "Replacement all" operation is:
CCCaa
CCC
bb
The third line (following an empty line) isn't replaced and is "bb" instead of "CCCbb"
It's a minor problem.
Have a good holiday!
Committed fix as [5e7672].
Handling of replacements where the match is empty are tricky as the matching has to always move forward to avoid infinite loops. There were two pieces of code that forced forward movement which caused the next line to be skipped. This has been changed to one but its possible that this will cause further problems.
There are similar problems with replacing /$/XX/ which I won't be trying to fix since this is in complex code connecting the search code with the regex implementation.
Related
Commit: [5e7672]