Skip to content

Instantly share code, notes, and snippets.

@revnode
Created May 26, 2013 18:23
Show Gist options
  • Save revnode/5653599 to your computer and use it in GitHub Desktop.
Save revnode/5653599 to your computer and use it in GitHub Desktop.
I know you'll fall in love with this feature, no more js or a server side code to check if the user's input is a valid email or url adress, with the pattern attribute you can use regular expressions directly.
<input type="email" pattern="[^ @]*@[^ @]*" value="">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment