Return to Snippet

Revision: 48962
at July 13, 2011 16:17 by punuhan


Initial Code
var pattSize=new RegExp("^[si|Si][a-zA-Z:/]+$");
										
										if(pattSize.test(att) ){
										
									
}

Initial URL

                                

Initial Description
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/

Initial Title
Regular expression matching text (Size) in javascript

Initial Tags
javascript

Initial Language
JavaScript