title: Javascript regex match not working
body: <p>I have the following Javascript regexp:</p>
  
  <pre><code> var regex = '/^' + name + '/'; 
   var s ='';
   s = this.innerHTML.toString().toLowerCase().match(regex);
      if (s != null){
           //do stuff
      }
  </code></pre>
  
  <p>This regex does not work as expected, <code>s</code> never gets set (<code>s = null</code> always)
  Any ideas? </p>