The pattern attribute specifies a Regular Expression the form control's value should match. If a non-null value doesn't conform to the constraints set by the pattern value, the ValidityState object's read-only patternMismatch property will be true....attribute specifies a regular expression the form control's value...when specified, is a regular expression which the input's value...