Test, validate and match regular expressions
This regular expression matches any whole number ranging from 0 to 255, including those with leading zeros. It uses word boundaries (`\b`) to ensure that it matches isolated numerical values rather than digits embedded within larger numbers. This makes it perfectly suited for validating individual octets in an IPv4 address or any other context requiring a strict numeric range check.