Posted By

jprochazka on 10/02/10


Tagged


Versions (?)

Simple Regular Expression matches.


 / Published in: Regular Expression
 

Simple Regular Expression match strings.

  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  

You need to login to post a comment.