title: Regex string ends with not working in Javascript
body: <p>I am not very familiar with regex. I was trying to test if a string ends with another string. The code below returns null when I was expecting true. What's wrong with the code?</p>
  
  <pre><code>var id = "John";
  var exists  ="blahJohn".match(/id$/);
  alert(exists);
  </code></pre>