Search text on javascript
<p>How to search text on javascript.</p>

<pre><code>var v=20;
str = "The rain 20 in SPAIN stays mainly in the plain";
var patt1=/ain  v/gi;
var n = str.match(patt1);
alert(n);
</code></pre>

<p>i am trying it but not getting any result.
Where am i wrong, any buddy can you please help me out.</p>
