string[] inputs = {
"Basketball Store Comércio Varejista de Artigos Esportivos Ltda. – EPP\a85% Shareholder / Administrator (June 2022 – Present)",
"Lírios Comércio de Produtos Naturais Ltda.\aUnspecified Shareholder / Administrator (March 2011 – Present)",
"Araucária Produtos Naturais Ltda.\aUnspecified Shareholder / Administrator (March 2014 – Present)",
"Litigation Information\u0002 Records from the Brazilian Supreme Federal Court, Superior Court of Justice, and the federal and state courts are reviewed."
};
Above is an array of strings that have been retrieved from my document. I am looking to Find and Replace these within my document, but for some reason, it is unable to find matches. I understand that you can’t replace with control characters, so is there a way to filter these out so that the replace does work?
var texts = "Litigation Information\u0002 Records from the Brazilian Supreme Federal Court, Superior Court of Justice, and the federal and state courts are reviewed.";
var howMany = clone.Range.Replace(texts, "");
Console.WriteLine($"Replaced {howMany} places."); // Writes: 0