When using the SyntaxEditor, the FindNext and ReplaceNext methods of the "SyntaxEditor.ActiveView.Searcher" take an "IEditorSearchOptions".
These options take a PatternProvider, which, if specified, can handle regex operations. The FindNext handles these scenarios well, but the ReplaceNext only seems to take the ReplacePattern and insert it where a match is found.
For example, given the following text in the syntax editor:
And the following search and replace options:
I'd expect the output result to be:
But instead, it is:
Is there a way to make this work using the same substitution rules with regex as .net?