Quote:
Originally Posted by shshao
Anybody know a good regular expression that matches all URL's, ie, http and https?
|
What do you want? Do you just need to identify a URL in a string? Are you building a regex to match a URL and parse parameters? If so, what do you need? E.g., the protocol, the domain, subdomain, HTTP auth username  assword, individual GET parameters, etc..?
For efficiency, it's often wise to construct a regular expression to meet your specific needs, nothing more.
|