title: Check text area for URLs with preg_match
body: <p>i found this code for checking a text area:</p>
  
  <pre><code> if (strpos($textp, "http://") !== false ||
      ereg("(www.[a-zA-Z0-9_-]+)\.([a-zA-Z0-9.]+)",$textp)){
      $textp = '';
    } else {
  </code></pre>
  
  <p>because ereg is depreacted I would like to replacy by preg_match instead. But if I replace I got an error according to \
  So what I should I exactly edit to get the same result - no URLs or elements of that inn that text area. </p>