title: Using Regular Expression to block domain
body: <p>I'm creating a blacklist and I want to block ALL variations of a given URL. For example,</p>
  
  <pre><code>www.google.com
  google.com
  google.com/maps
  sub.google.com
  google.com/dir/dir2/dir3
  </code></pre>
  
  <p>I know next to nothing about RegEx, so far I have this feeble attempt:</p>
  
  <pre><code>$blacklist = array(
  '\.google.\\',
  ); 
  </code></pre>
  
  <p>Can someone help me out?</p>
  
  <p>EDIT:</p>
  
  <p>I'd also like to block ALL domain with specific extensions such as 
      .me
      .xxx</p>