Detecting .com / .co.uk etc etc

Posted by Stefan on Stack Overflow See other posts from Stack Overflow or by Stefan
Published on 2010-05-09T15:07:18Z Indexed on 2010/05/09 15:18 UTC
Read the original article Hit count: 527

Filed under:
|
|
|

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 etc etc...

Sorry... to clarify: i'm detecting in a string.

Any ideas i need to scratch up on my regex!

Thanks, Stefan

© Stack Overflow or respective owner

Related posts about preg-match

Related posts about detection