HTML5 Form Validation With the “pattern” Attribute
定义和用法.pattern属性规定用于验证元素的值的正则表达式。注意:pattern属性适用于下面的input类型:text、search、url、tel、email和password。提示:请 ...,Thepatternattributespecifiesaregularexpressionthattheelement'svalueischeckedagainstonformsubmiss...。參考影片的文章的如下: