String.match() javascript

by Ramya 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));


Tagged in:

1173
like
0
dislike
0
mail
flag

You must LOGIN to add comments