I need to validate an IP range that is in format 000000000 to 255255255 without any delimiters between the 3 groups of numbers. Each of the three groups that the final IP c
^([01]\d{2}|2[0-4]\d|25[0-5]){3}$
Which breaks down in the following parts:
If you decide you want 4 octets instead of 3, just change the last {3} to {4}. Also, you should be aware of IPv6 too.
{3}
{4}