regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
ipv4 IP addressses, capturing private ranges
Published on Tue Mar 01 2022
Capture 0.0.0.0-255.255.255.255 IP address octets. Capture private ranges, such as '169.254.*' and '10.*'
Regex
Test String
0.0.0.0 10.0.0.1 127.0.0.1 169.254.0.0 172.20.255.255 192.168.0.1 255.255.255.255 -1.0.0.0 255.255.255.256 255.255.256.255 255.256.255.255 256.255.255.255
Additional matching regexes for
ipv4 IP addressses, capturing private ranges
ipv4 IP addressses, capturing private ranges
Capture 0.0.0.0-255.255.255.255 IP address octets. Capture private ranges, such as '169.254.*' and '10.*'
Mac-address filtering
Trying to capture a mac-address structure
Sutthinart
Private Regex Library
Non-parentheses characters, but allow escaped parentheses.
Trying to discover how to select all ranges except non-escaped parentheses.
RFC1918 - Private IPv4 addresses
Validate a given IP v4 address against all three defined Private IPv4 Subnets as statet in RFC1918 - 10.0.0.0/8 - 172.16.0.0/20 - 192.168.0.0/16 [Wikipedia Link](https://en.wikipedia.org/wiki/Private_network) [RFC Link](https://doi.org/10.17487%2FRFC1918)
Proxy matcher
Matches proxies in ip:port format. Takes into account that octets cant start with a 0, and that octets that are not the first octet can be a 0 if there are no more numbers behind it.
Extract URL parts only named capturing groups
Extract URL parts only named capturing groups
IP Address validator
Validates IPv4 IP Address
ipv6
Match an ipv6 address
IP with Subnet
IP address with Subnet