← Pattern Library PATTERN
Dev · Data
/\b(?:(?:25[0-5]|2[0-4]\d|1?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|1?\d?\d)\b/g
Dev · Data Flags: g
Description
Matches only valid IPv4 addresses where each octet is in the 0–255 range. Out-of-range values like 999.1.1.1 are filtered out. Frequently used for log analysis and access-list processing.
Example Matches
192.168.0.1
8.8.8.8
255.255.255.0
Test String
Local 192.168.0.1, public DNS 8.8.8.8, invalid 999.1.1.1
Open this pattern in the tester
Other Patterns