Parse URL by subcomponent
This regular expression parses URLs and captures their subcomponents.
It ignores port numbers. Port numbers are necessary. But, they are rarely visible in URLs. When used in a URL, it comes after the TLD separated by a colon. When using HTTP, port 80 is standard. For HTTPS, use port 443.
Submitted by Syd Salmon - 2 years ago