Anyone know a good preg function or any other function what would search a string and return a true/false depending on if it found an URL or email address in that string?
Basically I am trying to cut down on spam so I want to make sure users who post on my message board system don't try to post URLs or email addresses in their posts.
Obviously I could search for such key strings as [url]http://[/url] or any word that contains the "@" symbol and .com or .net.... etc etc etc , but I am not sure how to write the preg for it.....
Thanks.