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
Frequent Visitor

Cant' believe that three years on it's still missing.  C'mon guys.

 

(Feels like that scene from the British comedy "Yes Minister" ....

 

Jim Hacker (Minister): What's the difference?

Bernard (Civil Servant): Well, "under consideration" means "we've lost the file"; "under active consideration" means "we're trying to find it".)

Helper II

I am with you @DM2 ... I decided to convert an archaic Windows Service based process to use flow and literally fell at the first hurdle with the fact that you cannot use Regular Expressions without using a 3rd Party Product.

 

In today's world of AI / ML / Automation you would think RegEx would be top of the tree ... Sadly, we are left "wanting" by Microsoft again.

 

Come on Microsoft, this is a fundamental requirement  ... Don't make me have to switch to Nintex

Helper II

@Stephen - Sorry to Tag you ... but can you advise if there's any traction on this.

Resolver I

Hey,

 

I may have posted this somewhere already, so here is for our frustrated fellows:

 

I've ended up crafting my own tiny Azure Function that gets two strings (content and pattern) and calls JavaScript native regex.

So far (7 months) it is running fine, takes close to zero resources (thousands calls/month) and basically does the job.

 

Inna

 

P.S. Regex must be part of the flow framework. Workarounds like this should not be necessary. Even if this regex would come with some limitations.

Helper II

@in2217 

 

Nice work-around !

Frequent Visitor

@BO55VXR@in2217

 

Yep, an azure function is definitely the "get out of jail free" card.  It just shouldn't be necessary tho.  I mean, for the purposes flow is aimed at it's gotta be near the top of the needs list. 

New Member

URGENT need!!!!

 

Regular Visitor

Some regex are unsafe, but rather than creating arbitrary regex, there could be safe small regex, like:

 

Issue {company}-{group}-{jira_number} has been {status} to the group '{*}'. Due date to {due_date}.

Issue ABC-D-0001 has been designated to the group 'Developer's Realm'. Due date to Feb, 16th.

 

So that we can use variables created: company, group, jira_number, status, wildcard[0], due_date


This is how it`s done in Trello Butler automations.

Frequent Visitor

I need this so I can make a utility in one of our Teams channels to convert an ID from our ITSM tool typed within a message into a link to that takes you straight there.

 

I have managed this with the PlumSail regex tools which are very good, but not free beyond the trial period. Convincing people to buy tools like that for "toy" projects in a large org is not possible.

 

Trying to build it with the existing tools like substring feels like building an ocean liner out of match sticks and wood glue so it's a real shame this has been sat here for over 3 years without any sign of progress