How do I get the IpAddr values from this string below using preg match
{{Id=0|IpAddr=172.28.190.48|gateway=172.17.00.01|mask=255.255.255.240|pref=1}|{Id=0|IpAddr=172.30.228.64|gateway=172.17.01.02|mask=255.255.255.192|pref=1}|{Id=0|IpAddr=0.0.0.0|gateway=172.19.00.01|mask=0.0.0.0|pref=1}}
I tried below but it does not give results
preg_match_all("/.*IpAddr=(.*)\|/", $string, $result_array);
Umodifier in existing your pattern and should be fine