Hi,
Could anyone help me with the following:
I have to strip the domain from string only when it is not preceeded with a @ sign, which means when it is not a part of an e-mail.
Thanks,
Michal
$invalid = "/ (http://)?(www.)?[a-zA-Z0-9-]+.[a-zA-Z0-9-]+/";
preg_replace($invalid,"URL WAS HERE",$string);
i think this should work (defends on a white space before the URL)
Al