Add RegEx support to Arcade

11-19-2021 07:31 AM
Status: Open
Labels (1)
Occasional Contributor II

Please add regex support within arcade expressions.  This would be really useful for defining attribute constraints.  As an example, I can use the function below in Python to check to see if a string is a guid, it would be nice to be able to use a regex within an arcade attribute constraint to accomplish a similar task.




@AJR, you make good music and do GIS too, impressive. 🙂

Adding regex support to Arcade is a great idea, definitely worth a vote, but it will be quite a lift for Esri to do it.  I will cross my fingers, just not hold my breath. 


Yes. This will definitely be nice to have.


A Google search for something I was sure already existed led me here. So let's make it happen!

Esri, if you're wondering about the use case...

I'm making an attribute rule to concatenate NENA Address components to make a full address. Apparently, an address suffix that is an alpha ("A", "B", "C") needs to be concatenated to the address number without a space; whereas, a numeric ("1/2", "3/4") needs a space


Was just looking to add my first attribute rule and find that it only supports Arcade, not Python!  I had wanted to use some regular expressions for formatting my phone numbers and email fields - something I can do on Survey123.