Analytics Market is a one-stop resource for anything you can do with Google Analytics. Tips and tricks, product news, API tools, and more!
Analytics Market Chart

IP Range Regular Expression Builder

Google Analytics uses regular expressions in its filter definitions, which allows for much more control. Regular expressions for number ranges, however, can get complicated. This tool takes the beginning and ending IP addresses in a range and generates a regular expression that captures all the IP addresses in the range.

Step 1

Enter the first IP address in the range.

First IP Address:*

(e.g. 63.212.171.1)

Step 2

(Optional) If there are multiple IP addresses, enter the last IP address in the range. If this field is left blank, the tool will create the regular expression for the single IP address entered in step 1.

Last IP Address:

(e.g. 63.212.171.254)


Step 3

Copy and paste the results below into the "IP address" or "Filter Pattern" field of the "Create New Filter" page.