Like this solution even better than mine!
As a note, you don't HAVE to use a regex to solve this. It's the method I chose to implement in my solution but there are other ways.
Actually the first two test cases involving 1.2.3.4 are NOT valid and the last is. Hint: an IP can consist only of digits and periods.
Loading collection data...
Like this solution even better than mine!
As a note, you don't HAVE to use a regex to solve this. It's the method I chose to implement in my solution but there are other ways.
Actually the first two test cases involving 1.2.3.4 are NOT valid and the last is. Hint: an IP can consist only of digits and periods.