Regex · IPv4 address · Free
IPv4 address regex.
Matches a valid IPv4 address, with each of the four octets constrained to 0–255. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/\b(?:(?:25[0-5]|2[0-4]\d|1?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|1?\d?\d)\b/g
✓ Matches
192.168.1.110.0.0.2558.8.8.8✗ Doesn't match
256.1.1.1192.168.11.2.3.4.5Need a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →