regex validate an ip code example Example: regex check is valid ip ((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}