Hi false007,
I think, need to disappoint you :/ I have check the code, and this is a definitely a bug, but fix is not trivial and at the end will be one more hack to make this explicit scenario working.
The reason is generic HE search engine, which is same for plain and regexp search. It was initially a wrong architectural decision to do it in a such way, and there were already several problems with it as example greedy search or multi line search with not explicitly explorable line count...
I need to redesign the search engine (not regexp it works fine, problems are on HE side) and do not think this is a good idea to do it in 1.49 version. It is too risky.
I will do this in 1.50, when scripting finished, before starting online functionality.
Until then you can use Stefans workaround or use another editor for this purpose :/.
I need to confirm this (look ahead/behind usage for regular expression based replace) as current limitation.
Sorry for this, but I think this is a right decision.
BR, Alex