String.match() javascript
by Ramya[ Edit ] 2010-02-06 20:11:05
String.match() javascript:
The match() method searches the string for the regular expression passed to the method.
var str="Rain Rain Go Away";
var patt1=/ain/gi;
document.write(str.match(patt1));