title: PHP - Check if a string contains an IP address
body: <p>I have a string like this:</p>
  
  <p>"(01:42 PM)76.124.231.190 William: Hello?"</p>
  
  <p>I need a regex to remove the IP address like this:</p>
  
  <pre><code>preg_replace($regex, "", "(01:42 PM)76.124.231.190 William: Hello?")
  // --&gt; "(01:42 PM) William: Hello?"
  </code></pre>
  
  <p>I've seen this: <a href="https://stackoverflow.com/questions/5865817/regex-to-match-an-ip-address/5865849#5865849">Regex to match an IP address</a>, but that checks if the string <strong>is</strong> an IP, not if it contains it.</p>
  
  <p>Also, it don't have to be perfect, 999.99.999.999 is ok for simplicity.</p>