Pattern Range (IP Address)

WhatsConfigured regular expression (regex) engine is useful for returning only records that match a pattern representing a range of values. This is especially helpful when searching for configuration records with certain IP addresses or TCP ports.

Return Records Containing IETF Reserved Addresses

The following regex syntax used with WhatsConfigured regex engine returns any configuration records or archived files containing IP addresses within the block of address reserved by the IETF for documentation (192.0.2.0/24) as defined in RFC 5737. You can use this example as a starting point for your own IP address pattern matches.

Syntax

^192\.0\.2\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$

See Also

Applying Regular Expressions

Pattern Exclusion