pattern

Gets or sets a string containing a regular expression that the user's input must match.

MDN Reference