Regular expression for matching IP addresses