Forum Discussion
Examples of "subject matches patterns" regular expression when auto-applying sensitivity label
- Sep 13, 2023
I'm sorry it took so long for you to get a response here but I believe, after some testing, that this is the regex you'd want to use, which will establish the word boundary as you were already trying to do, but you still need to use the "?:" to set the non-capture sub-pattern.
\b(?:Litigation Hold)\b
If you go to regex101: build, test, and debug regex and choose .NET (C#) as the flavor and get a match, then it will match within Microsoft.
I'm sorry it took so long for you to get a response here but I believe, after some testing, that this is the regex you'd want to use, which will establish the word boundary as you were already trying to do, but you still need to use the "?:" to set the non-capture sub-pattern.
\b(?:Litigation Hold)\b
If you go to regex101: build, test, and debug regex and choose .NET (C#) as the flavor and get a match, then it will match within Microsoft.
- tgraham-legalopsOct 03, 2023Brass Contributor
miller34mike Thank you! Have you had any luck using the "Header matches patterns" condition? No matter what I try, I can't get that one to work. Any tips would be greatly appreciated.
- miller34mikeOct 05, 2023Microsoft
Unfortunately, I have not used or tested that condition in the past. If you'd like to send me a specific example through a direct message on here I'll happily circulate it with others to see if we can find the resolution.