Simple Regular Expression matches.


/ Published in: Regular Expression
Save to your folder(s)

Simple Regular Expression match strings.


Copy this code and paste it in your HTML
  1. Alphabetical = /^[a-zA-z]+$/
  2. Alphanumeric = /^[0-9A-Za-z]+$/
  3. Email = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.