Validating a Form Control with Regular Expression


If there is a requirement  to enforce formatting or prevent special characters in a form control, leveraging Regular Expression may be the most efficient option.



  1. Select the control.
  2. Open “Control settings”.
  3. Go to the "Validation" group.
  4. Set "Use Regular Expression" to 'Yes'.
  5. Enter the desired expression
For example:
Prevent Special Characters (Allow alphanumeric characters only)

Email Address Format:



Additional Information

Configuring validation within the control settings is the only way to leverage Regular Expression for validation at runtime in a Nintex Form. Using a Validation Rule with runtime functions will not properly evaluate Regular Expression. For example, using the contains() function to attempt to prevent special characters only evaluates literal strings rather than Regular Expressions.


Related Links

Microsoft - Regular Expression Language - Quick Reference
Regular Expression Language - Quick Reference


Tags (2)
Version history
Revision #:
64 of 64
Last update:
‎02-03-2021 04:05 AM
Updated by: