Hey all!
I currently have a preg_match to detect http:// and www. etc..... but I want to detect domain.com or domain.co.uk from a string
example string: "Hey hows it going, check out domain.com" And I want to detect domain.com
What I want is to detect any major domains form this string i.e. .com .co.uk .eu etc... from the form xxx.com yyy.co.uk and then return true or false to handle it. In this case it would find domain.com.
However I do NOT want it to detect something like:
"hey.i love this site"
Whereby this is obviously an error in typing a space from the full stop!
Any ideas i need to scratch up on my regex!
Thanks, Stefan