Posted By

punuhan on 07/13/11


Tagged

javascript regular Expression srting


Versions (?)

Regular expression matching text (Size) in javascript


 / Published in: JavaScript
 

Matches the word starting with si or Si and containing : in the word also as an optional. The expression can be tested here http://rejex.heroku.com/

  1. var pattSize=new RegExp("^[si|Si][a-zA-Z:/]+$");
  2.  
  3. if(pattSize.test(att) ){
  4.  
  5.  
  6. }

Report this snippet  

You need to login to post a comment.