Idea ID: 2788581

Use Regular Expression for Policies

Status: Under Consideration

Under Consideration

See status update history

We should be able to use regular expressions when defining policies. Especially policies that validate a Specific Property. The current method is very limited on ensuring that the content being provided in a particular field matches what the customer wants. For example, it is better to try and validate a phone number with something like ((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4} then ###-###-####. The second limits you to only 313-444-9801, where as the first allows for (313) 444-9801 or 313-444-9801. You would also be able to be more or less restrictive with regular expressions where the current method is overly restrictive and does not provide a lot of variety.