/ 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/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var pattSize=new RegExp("^[si|Si][a-zA-Z:/]+$"); if(pattSize.test(att) ){ }
Comments
