RegEx flags on iOS 13 Shortcuts

Hey guys,
Is it possible somehow to use flags in “match text” action on iOS 13 Shortcuts ?
i.e: /(\d[2])/g or /i?

Yes. Shortcuts uses the ICU flavor of regex. The flags are in the table Regular Expression Operators

http://userguide.icu-project.org/strings/regexp#TOC-Regular-Expression-Operators

1 Like

How do you invoke these flags in Shortcuts?

From the linked to guide:

Here’s an example of using the multiline flag.

https://www.icloud.com/shortcuts/e85c2ba7afa94d7aa43b02e621f9fc72

Thanks! The trick is to put the flag at the beginning of the expression, not the end.