Test, validate and match regular expressions
This regular expression validates dotted-decimal IPv4 addresses by ensuring each of the four octets falls strictly within the valid numeric range of 0 to 255. It uses anchors to match the entire string (or line with the multiline flag) and accurately prevents invalid ranges outside of the byte limits. It is ideal for strict input validation of network IP addresses.