Anyone have issues with DocIO FindAll and RegEx not working as expected.
I had added some "tags" to a Word doc that I want to replace. I have a C# RegEx pattern that I have tested outside of the code and have confirmed that it does find matches. I even simplified the RegEx pattern to something simple and FindAll does not work. FindAll does work if I put just straight text but I need a relatively complex RegEx pattern to locate my "tags".
My doc includes this text "... ![INCLUDE_IF_TRUE::IncludeNoticeSensitiveData|NOTICE: THIS DOCUMENT CONTAINS SENSITIVE DATA\r\n]!Discovery Level\r\nDiscovery in this case is intended to be conducted under..."
RegEx -> Matches
@"Discovery" -> finds matches
@"\[" -> finds matches
@"!\[" -> Does NOT find matches and it should
My full pattern is not working either:
@"(?:!\[)(\w+)(?:::([^\|]*))?\|(.*?)(?:\]!)"
It does not seem like the RegEx pattern is the issue.