cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SofiaHanna
New Member

How to combine regex with recipient field

Hey guys, I am trying to get the following regex into my workflow (to remove string before @ from an email): 

(@)(.+)$
 
How do I combine this expression with my "recipient" field?
example: triggerOutputs()?['body/toRecipients'(@)(.+)$
 
Thank you
1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

Flow doesn't currently have support for REGEX.  But what you can do is use a combination of the Split() and First() functions to isolate the domain.com you want.

Last(Split(emailString,'@'))

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

Flow doesn't currently have support for REGEX.  But what you can do is use a combination of the Split() and First() functions to isolate the domain.com you want.

Last(Split(emailString,'@'))

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

SofiaHanna
New Member

Thank you very much @Pstork1 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (36,157)