RegEx - global and case-sensitive modifiers


Badge +9

Can anyone tell me how I should correctly specify the g and i flags?

The actual recommendation value is a sentence and if any one those words in the Regex expression are found, then the other actions progresses...


2 replies

Userlevel 5
Badge +14

As far as I know you cannot put flags into the regex there which is kinda unfortunate, but if you're dealing with complex or larger Regular Expressions, you can always use the actual Regex Action and then just check against the variable used to capture whether or not it was successfully matched: 
216839_pastedImage_2.png

However, because this case has only a few conditions to meet, I'd just use the 'contains (ignoring case)' option of the Condition or Run If action that you're evaluating your string in: 

216838_pastedImage_1.png

Either way you'll get to the place you'd like to be. 

216840_pastedImage_3.png

216841_pastedImage_4.png

216843_pastedImage_6.png

216844_pastedImage_7.png

Badge +9

Thank you - I did think I'd hafta use the Regex Expression action...

Reply