title: How to check string in current URL with javascript?
body: <p>My Url looks like:</p>
  
  <pre><code>http://mywebsite/series/2545-abc
  </code></pre>
  
  <p>But I don't know how to check URL with regex. So, How to check url current windows with above URL? </p>
  
  <p>I mean:</p>
  
  <pre><code>If Url = http://mywebsite/series/2545-abc
    do something
  </code></pre>