Hello,
Is there an option to replace multiline string that match a pattern that starts with ** and ends with ** with empty string. The content between the ** can contains any type of content, paragraphs, line brakes, images, etc. and should dropped from the document in case it surrounds with **.
I tried the OpenXmlRegex with the following pattern:
regex = new Regex((@”\*\*(.*)(\n)?(.*)?\*\*”), RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.CultureInvariant);
But it works only for text content in the same line.
Any idea how can I achieve such request?
Thanks,
Meron