IPv4 Regular Expression

by Vitaly, Monday, February 15th, 2016

Accurate regular expression to match IPv4 address:

((([0-9])|(1[0-9][0-9]?)|([2-9][0-9])|(2[0-4][0-9])|(25[0-5]))\.){3}(([0-9])|(1[0-9][0-9]?)|([2-9][0-9])|(2[0-4][0-9])|(25[0-5]))

Tags: ,