I have a string like this:
"(01:42 PM)76.124.231.190 William: Hello?"
I need a regex to remove the IP address like this:
preg_replace($regex, "", "(01:42 PM)76.124.231.190 William: Hello?")
// --> "(01:42 PM) William: Hello?"
I've seen this: Regex to match an IP address, but that checks if the string is an IP, not if it contains it.
Also, it don't have to be perfect, 999.99.999.999 is ok for simplicity.