title: If URL contains string, then do something with substring
body: <p>I want to write a jQuery function that reads the URL for a string like so and then does something with the substring after it. Something like this:</p>
  
  <pre><code>if (window.location.href.indexOf('/more/**ID_NUMBER**') &gt; -1) {
      console.log('got more');
      console.log(this);
      console.log(**ID_NUMBER**);
  }
  </code></pre>
  
  <p>But I'm not sure how to refer to <code>**ID_NUMBER**</code> without hardcoding it. Any help?</p>