Hello,
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:
TEXT,INFO,1000
And the following search and replace options:
RegexPattern
FindPattern: (TEXT,.*),1000
ReplacePattern: $2,500
I'd expect the output result to be:
TEXT,TOP,500
But instead, it is:
$2,500
Is there a way to make this work using the same substitution rules with regex as .net?
https://docs.microsoft.com/en-us/dotnet/standard/base-types/substitutions-in-regular-expressions