How to use IsMatch Regular Expression

Hi all,

I am trying to use an IsMach activity with advanced option selected and the regex: “\b[O|o](ut|UT).\s[O|o](f|F).\s[O|o](ffice|FFICE)\b”

It should be able to match (OOO, ooo, Out of Office or any combination of out of office), this works fine and returns true when the input text contains such words, however, the problem is that it also returns True, for when the input is (POD Request Multiple, or POD Request Single), it should return false in this case.

Any ideas, would be much appreciated. Thank you.

You asked about the isMatch, but we do see your question more related to the Regex Pattern

Have a look here:

we enabled the Case Insensitive RegexOption and reduced the complexitiy of the pattern

Regex.IsMatch(YourString, "OOO|OUT OF OFFICE", RegexOptions.IgnoreCase)

Hey @Sidney_Vogel ,

Apply the following properties to the isMatch activity to get the desired result.


Thank you this helps, but what’s wrong with this expression: “\b[O|o](ut|UT) .\s [O|o](f|F) .\s [O|o](ffice|FFICE) \b”, meaning why does it return true for (POD Request Multiple, or POD Request Single)?


Kindly note: Code snippets are better to format with the </> from the editor as it can partly interpreted as Mark Down code

Sorry, here \b[O|o]*(ut|UT)*\.*\s*[O|o]*(f|F)*\.*\s*[O|o]*(ffice|FFICE)*\b

we do see unwanted matches but not on POD

In general we do feel that your initial question was answered

Yes the question was answered and thank you for that I just wanted to understand the issue.

Thank you for all the help. Much appreciated.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.