Answers for "regex in html pattern"

1

html textbox pattern mobile number

<input type="text" name="Phone Number" pattern="[7-9]{1}[0-9]{9}" 
       title="Phone number with 7-9 and remaing 9 digit with 0-9">
Posted by: Guest on September-23-2020
2

name validation html

<input type="text" pattern="[a-zA-Z'-'\s]*">
Posted by: Guest on September-18-2020

Browse Popular Code Answers by Language