title: Javascript Matching - case-insensitive
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3939715/case-insensitive-regex-in-javascript">Case insensitive regex in javascript</a>  </p>
  </blockquote>
  
  
  
  <p>Values could be:</p>
  
  <pre><code>- Mike liam
  
  - Joe mike
  
  - Mondal mike effron
  </code></pre>
  
  <p>I want to mach every value contains 'mike' - case-insensitive</p>
  
  <p>So, I tried:</p>
  
  <pre><code>var x = "mike";
  if(valeu.match(new RegExp(x, "g"))
  alert('success');
  </code></pre>
  
  <p>but that didn't work. any ideas ?</p>