Ad
  • Default 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.

  • Default User Avatar

    It's not about IP's that wouldn't work, but non-IP's that would work. This expression allows an IP like 299.299.299.299, which is in fact invalid.