Powerful validation with regular expressions

Since version 1.1 of ConfiForms plugin you can define validation rules for form fields using regular expressions

This is done by setting parameter '' of ConfiForms Field Definition macro

Validation in action

Here is a short list of regular expressions you might be interested in to use for validations

Validation Regular expression
Value is empty ^\s*$
Value is not empty ^(?=\s*\S).*$
Value is alphanumeric ^[a-zA-Z0-9]*$
Value contains only letters ^[a-zA-Z]*$
Value length (1-20 chars) ^.{1,20}$
Only numbers ^[0-9,;]+$

Of course, you can write your own regular expressions (or ask someone or google) and use them as field validation rules.