Regular Expression (RegEx)

Regular Expression

Description

You can use the action to dynmaically use Regular Expressions.

Input Arguments

Input ArgumentTypeDescriptionRequired?Advanced Option?Default
TextStringText in String in format✔️-
Regular ExpressionStringThe NET regular expression pattern to match-
Regular expression optionChoice FieldSelect regular expression option-

Output

ResponseTypeDescription
Is match?BooleanIndicates whether the regular expression found a match in the input text (true or false).
First match valueStringThe value of the first matched string.
First matchObjectThe full object containing details of the first match, including index, length, and value.
ItemObjectAlias for First match; contains the same data.
matchesArrayA list of all matches found, each as an object with details like value, index, etc.
BodyObjectThe full response object containing isMatch, matches, firstMatch, and firstMatchValue.

Power Automate Examples

Simple JSON

We use a simple e-mail text as Text to match and the following Regular Expression.

Regular Expression
^(?s:.*)(?=/footer)

Picture

💡

Looking for the response to this example? Scroll up to see the Output tab.

Known Limitations

⚠️
If you experienced other limitations please get in touch with us!