From Make 6.1 the ability to use regular expressions to validate user input in input fields when applying a configuration, update, batch or validation request has been added.
To use this functionality add a “regex” : “REGULAR_EXPRESSION”
to the parameter field in the parameters JSON. For example if I would like to use a regular expression to validate if a user types an email address I could use the following JSON:
|
|
NOTE |
Be sure to escape characters to make it a valid JSON. As you can see the “\” is escaped by using an additional “\”. An (online) JSON validator is recommended. |
NOTE |
Do not use leading and trailing slashes. “/^[a-zA-Z0-9.!#$%&’*+/=?^_`{ |
When Applying this configuration using the Make UI. A valid email address must be inserted in the “Group Owner 1” input box. If this is not the case an invalid message will appear and the configuration may not be submitted.
Figure 1: Regular Expressions