Showing results for 
Search instead for 
Did you mean: 

extract substring using regex

Would be useful if the IsMatch function had a baby brother that could extract/return a substring from a parent string by using a regex pattern.  Either as a separate function or perhaps as an additional or optional output of the IsMatch function.


This is especially useful for strings that are variable where left/mid/right won't, but have predictable structure/patterns that regex can pick up.




Kind regards,



Status: Under Review
Level: Power Up

Like this functionality.  However, also would like to vet user input using a REGEX formula.  On match indicate to the user the input is a valid piece of data and alter App behaviour.   So could use access to the REGEX class, plugin, etc.

Power Apps Staff
Status changed to: Under Review
Level: Powered On

I could definitely use this if it works as javacript and others (i.e. "\d(\d)\d" than the 2nd digit can be referenced. 

Level: Powered On

Would be very useful!

Yeah, I need a way to validate email input matches a certain pattern. 

Level: Powered On

I'm looking for a way to set a variable based on finding a code within a mail subject.


I think regex is ideal for this.

Level: Powered On

Looking for something similar. I'd like to look for text in a string, in most cases a url (i.e or, that contains "doc-" followed by and unspecified amount of numbers (i.e. doc-456123) and extract that specific match from the string

Super User

If anyone is looking for an answer, here's an example that I've posted.