Regular Expressions - Regex
Elements input validation. Available from Symphony v20.6 and above
Input validation is your first line of defense when creating a secure application.
Symphony Elements supports input validation using regular expressions (regex) for the text field
and text area
elements.
Regular expression Denial of Service - ReDoS
Regular expressions can cause performance issues in the Client if the validation of the regular expression is very complex. Poorly designed regular expressions can even cause denial of service (ReDoS). Please verify that your regular expressions are safe, using the following service: https://redos-checker.surge.sh/.
For more information, refer to Regular expression Denial of Service - ReDoS.
Validation examples
The following code snippets assumes that both <text-field>
and <textarea>
elements are placed within the right messageML context : <messageML>
+ <form>
including an action <button>
.
Text field
Text area
Last updated
Was this helpful?