I'm trying to figure out how to use a PHP preg\_replace to replace an email address in a string with (email hidden). I'm building a app where I don't want customers to post their contact information. Most people are starting to get smart by using the following:

james (at) yahoo dot com

james at example dot com

How can I stop this from happening? 

How can I add it to this:

```
$emailHidden = 'james at example dot com';

$emailHidden = 'james (at) example dot com';

$emailHidden = 'james at example.com';

$emailHidden = preg_replace('/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i','(email hidden)',$emailHidden); // extract email

```

Also, I still want to remove regular email addresses. e.g. james@yahoo.com