Match an IPv4 address with octet range checks.
Section: Validation Recipes
IPv4 address
regex
regex
^(?:25[0-5]|2[0-4]\d|1?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}$Explanation
Avoids invalid octets like 999.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Validation Recipes