Exact matching using regexp
<pre><code>var name ='John Rock';
alert((/^John|Steve$/i).test(name));
</code></pre>

<p><a href="http://jsfiddle.net/czBhb/" rel="nofollow">http://jsfiddle.net/czBhb/</a></p>

<p>This code alerts <code>true</code>, because doesn't use an exact mathing, but has to.</p>

<p>Should return <code>true</code> for <code>John</code> and <code>joHn</code> (case matching off). But not for <code>John 12</code> or <code>mahjohng</code>.</p>

<p>There is <code>|</code> in the code, we should keep it.</p>

<p>How do I fix this regexp?</p>
