Regex working in an online tester but not in KM's Switch/Case

I have a Switch action where I check to see if my variable is equal to either “.jpg” or “.png”. The regex I am using in KM for this is:

(?i).(png|jpg)$

It works on regex101.com's tester but not in KM. Any ideas? Thank you in advance!

Screenshot 2020-10-02 at 15.45.07

You need to use the "matches" instead of the "is" for the compare operator.

1 Like

Ah I see that works now. Thank you, once again!

1 Like