Hi Claudia,
No, It’s not related to the complexity of the regex ! It’s just that the step-by-step replace doesn’t work at all, as soon as the search regex contains, at least, one \K form :-(( Though I don’t know exactly why !?
Consider the subject string below :
abc abcdef abcdefghi abcdefghidefjklWith the simple S/R SEARCH abc\Kdef and REPLACE 123, if I click on the Replace All button, we get the right text :
abc abc123 abc123ghi abc123ghidefjklNote that the second string def has not been changed, because it wasn’t just after an abc string. That’s correct !
On the contrary, if I click, several times on the Replace button, nothing has changed !!!
Cheers,
guy038
P.S.:
I’ve just realized that the bug exists too, if we use a look-behind, instead of the \K form !
So, the S/R SEARCH (?<=abc)def and REPLACE 123 does the job, if you click on the Replace All button, ONLY !
Remember that, due to the look-behind feature, this regex tries to match a def string, only if preceded by the string abc