Regular expression patterns
Pre-release
Pre-release
The pattern attribute specifies a regular expression against which the control’s value.
Constraint validation: If the element’s value is not the empty string, and the element has a compiled pattern regular expression but that regular expression does not match the entirety of the element’s value, then the element is suffering from a pattern mismatch.