IPv4
To match IPv4 address format, you need to check for numbers [0-9]{1,3} three times {3} separated by periods \. and ending with another number.
^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$
This regular expression is too simple - if you want to it to be accurate, you need to check that the numbers are be...