RegExPal

Bookmark: http://www.regexpal.com

http://www.regexpal.com

Category: Troubleshooting

Description:

When working with IDS/IPS systems, you often have to evaluate complex Regex values in order to determine how a signature works. The captured data packets can often include strings of characters written in regular expressions, or "regex". As such, tools like this site are a great help to assist in evaluating strings and calculations. In fact, it was with help from this tool I was able to create and modify the following regex expressions to evaluate various public and specific IP address ranges:

Any IP
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

10.0.0.0/8
10.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

172.16.0.0/12
172.(?:1[6-9]|01[6-9]|02[0-9]|2[0-9]|03[01]|3[01]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

192.168.0.0/16
192.168.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

255.255.255.0/24
255.255.255.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

Created: 09 Dec 2013 12:31
Updated: 25 Oct 2015 23:18

Website thumbnails provided by:
www.ShrinkTheWeb.com



Bookmark http://www.regexpal.com
Profile
Category: Troubleshooting
Description

When working with IDS/IPS systems, you often have to evaluate complex Regex values in order to determine how a signature works. The captured data packets can often include strings of characters written in regular expressions, or "regex". As such, tools like this site are a great help to assist in evaluating strings and calculations. In fact, it was with help from this tool I was able to create and modify the following regex expressions to evaluate various public and specific IP address ranges:

Any IP
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

10.0.0.0/8
10.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

172.16.0.0/12
172.(?:1[6-9]|01[6-9]|02[0-9]|2[0-9]|03[01]|3[01]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

192.168.0.0/16
192.168.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

255.255.255.0/24
255.255.255.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License