Umbraco/Samples and Articles/Templates/ValidateInput

Validating user input
When creating Umbraco document types you can validate content entry by using regular expressions in the Validation field.

Examples
Input must be between 5 and 10 characters:

^.{5,10}$