Regular Expression problem

Posted by Yatendra Goel on Stack Overflow See other posts from Stack Overflow or by Yatendra Goel
Published on 2010-04-20T10:10:09Z Indexed on 2010/04/20 10:23 UTC
Read the original article Hit count: 238

Filed under:

I want a regex to find the following types of strings:

where

abc -> abc always remains abc

anything -> it could be any string

tld -> it could be any tld (top-level-domain) like .com .net .co.in .co.uk etc.

Note: The url must not contain any other thing at the end, means http://anything.abc.tld/xyz is not acceptable.

© Stack Overflow or respective owner

Related posts about regex