If Variable Value Matches RegEx Expression?

I have a variable, RADIOShowProfanity. I'm trying to set another variable if RADIOShowProfanity contains "n/a", "n / a", or "none". How do I make that work?

Creating an IF action and trying Variable contains (?i)\b(n\s*/\s*a|none)\b isn't working for me.

(P.S. I didn't post the macro because the below is the entire macro so far.)

I’m nowhere near my machine but did you try matches instead of contains? I think that’s a component of the process with regex. Maybe?

1 Like

Aha! That did it! Thank you, @kcwhat!