title: How to implement wildcards for window.location.pathname
body: <p>I have the following code and I would like to make the function work on any URL containing "blog" instead of a specific URL. Please help me with the correct syntax, thanks.</p>
  
  <pre><code>window.setTimeout(function() {
    if (window.location.pathname != '/home/legal-documentation' &amp;&amp;
      window.location.pathname != '/home/blog/australian-business-news'
    ) {
      erOpenLoginRegisterbox(jQuery);
    }
    return false;
  }, 1000);
  </code></pre>