cancel
Showing results for 
Search instead for 
Did you mean: 

Support for regex - either in conditions or as an action with capture groups exposed

It would be really good to have support for regular expressions.

 

This could be surfaced in the UI ideally in both conditions and actions.

 

A conditional regex would just test whether a string matched against a regex.

An action regex would expose capture groups.

Status: Under Review

This is a great suggestion - we are trying to identify a way to safely run regex in Flow.

Comments
Level: Powered On

I completely support this, regex would make Flow a whole load more powerful and useful.

 

Ask  your self... who would create a modern scripting/automation/taskflow system and not include regex support? 

Level 10

I want to use the Regular Expression by Microsoft Flow,

for match a pattern, extract a parts to the string.

 

Scenario:

- Get a product code from a string, like [0-9]

- Get a digits from a string, like \d{3}

 

 

Oh yes please! I currently do string manipulation -extract text from sentences- using dozens of variables and complex mixes of substring() and indexOf() functions...

 

This could be replaced by one call with a corresponding regex and capturing groups.

Level: Powered On

...or to provide an easy way to remove spaces between words.

Super User

Upvoted.

 

Would be really good to have Regex to use within Microsoft Flow - For example I'm trying to extract the profit centre from a file name (anywhere in the name) and then save that to a SP library of the found profit centre name... and when you have lists that comprise thousands of entries for codes in format (\d{2})-(\d{3})-(\d{3}) you don't want to (can't?) be doing if/else matches for that volume of entries!