REGEX TO IF A STRING IS VALID ip ADDRESS code example
Example 1: ip address regex validate
^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
Example 2: regex check is valid ip
((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}