• Custom User Avatar

    Like this solution even better than mine!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.