Answers for "reg expression html 5"

-2

regex on input

<form>
 <label for="username">Username <i>(letters and numbers only, no  punctuation or special characters)</i></label><br>
 <input name="username" id="username" pattern="[A-Za-z0-9]+">
</form>
Posted by: Guest on February-17-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