Does ContentRange.Replace(Regex, String) support substitutions?

I would like to use substitutions in regular expression-based replacements, e.g.

Regex reg = new Regex("cat(A)");
string replacement = "dog$1";
document.Content.Replace(reg, replacement);

This should replace catA by dogA.
But in my tests catA is replaced by dog$1.
Are regular expression substitutions actually supported?


Hi Thomas,

Please try again with this bugfix:

Or this NuGet package:
Install-Package GemBox.Document -Version 35.0.1271-hotfix

Does this solve your issue?


Thanks, Mario, for the fast repsonse and bugfix!
It is working now!
Best, Thomas