I have a string in php like this.
$str = "192.168.10.1;10.192.10.10;" //Contains repeated ip addresses
I want to validate it using regular expression by preg_match function but i am unable to create the regular expression for it.
I have created following :/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\;\z/
but this only validate till first ';' not after that.
Thanks in advance