Regex stands for Regular Expression and it's a pattern of characters in a specific format that can act as a rule and can be used to check adherence or match of an input text to the rules.A ip address regex is a pattern for matching ip address.The validator matches this input with any ip address of ipv4 or ipv6 (ip validation)