Add support for Regex in Arcade. This will help with text validation both server and client side.
This would be super helpful. The alternatives are to either painstakingly evaluate the input OR, if this suits the workflow and you have the license for it, use a validation rule with the Data Reviewer extension. See here for a relevant discussion: Solved: Re: Constraint or validation rule to check that te... - Esri Community
Just evaluating a regex for use in constraint rules would be great, or to extract particular substrings from input text (classic example would be an email or a phone number).
Absolutely needed to validate free-form input text against a list of patterns
I agree this is a big shortcoming of Arcade. I am hard pressed to think of another scripting language that doesn't support, at least partially, regular expressions.
Usecase: Limit ID field entry to [0-9,A-Z]. Currently, have to create whitelist array length 36, and forloop find every character in user entry. Sprawling, ugly and slow.
Sign in to post, follow content, and more. New here? Register for free.