[Solved] Return Mobile Number, IP Address and Date Format in PHP String using regular expression [closed]


You could use the below regex to extract all ipaddresses, phone number, dates.

(?<ipaddress>\d{1,3}(?:\.\d{1,3}){3})|(?<Phonenumber>\d{10})|(?<Date>\d{1,2}\/\d{1,2}\/\d{4})

DEMO

2

solved Return Mobile Number, IP Address and Date Format in PHP String using regular expression [closed]