title: Trying to understand this location.href.match JS RegExp parts
body: <p>I'm trying to understand this javascript regular expression.</p>
  
  <p>Can anyone give me an explanation about this regexp parts?</p>
  
  <pre><code>location.href.match(/^http:\/\/(www\.)?example.com/i)
  </code></pre>