Validate an IPv4 address
Given a string, decide whether it is a valid IPv4 address: four decimal numbers from 0 to 255 separated by dots, with no leading zeros and nothing else in the string.
No answer yet. Write the first one; the best answer gets endorsed.
