IPv6 & IPv4 checker (Typescript compatible)
const ipAddressRegexp = /((^\s((([0-9]|1-9|1[0-9]{2}|20-4|25[0-5])\.){3}([0-9]|1-9|1[0-9]{2}|20-4|25[0-5]))\s$)|(^\s((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9...
Submitted by proddy - 3 years ago (Last modified 3 years ago)