title: Excluding several IP-ranges in Google Analytics
body: <p>I've been trying to wrap my head around excluding four IP-ranges (Edit: It is only the third octet that is ranging from 1-128. The fourth are &quot;static&quot; as detailed below) in Google Analytics. My skills for regular expression, which Google Analytics can utilize, isn't the greatest. I was hoping to get some assistance here on how to structure my regexp so that it does what I want.</p>
  <p>The IP-ranges I am looking to exclude are:</p>
  <blockquote>
  <p>10.130.1.0 - 10.130.128.0,</p>
  <p>10.130.1.99 - 10.130.128.99</p>
  <p>10.132.1.0 - 10.132.128.0</p>
  <p>10.132.1.1 - 10.132.128.1.</p>
  </blockquote>
  <p>As you can see, there are some static portions and some more &quot;dynamic&quot;.</p>
  <p>The full regexp I created looks like this (separated it to be easier to read, but it is actually on one line):</p>
  <blockquote>
  <p>^10.130.([1-9]|[1-9][0-9]|1([0-1][0-9]|2[0-8])).0|</p>
  <p>10.130.([1-9]|[1-9][0-9]|1([0-1][0-9]|2[0-8])).99|</p>
  <p>10.132.([1-9]|[1-9][0-9]|1([0-1][0-9]|2[0-8])).0|</p>
  <p>10.132.([1-9]|[1-9][0-9]|1([0-1][0-9]|2[0-8])).1$</p>
  </blockquote>
  <p>Am I doing it right? I haven't really fully grasped the grouping <code>()</code>, or if I need to group together each separate part of the different ranges, like <code>(10\.130\.([1-9]|[1-9][0-9]|1([0-1][0-9]|2[0-8]))\.0)</code>, or keep it like it is, without the <code>()</code>?</p>
  <p>Am I grouping it correctly and is this a good way to do this?</p>