Files
snippits/url-parser.regex
2023-08-03 00:31:17 +00:00

2 lines
193 B
Plaintext

^(?:(?<protocol>https?):\/\/)?(?<host>(?<name>(?:(?<subdomain>.+?)\.)?(?<basedomain>.+?)(?:\.(?<domain>.+?))?)(?:\:(?<port>\d+))?)(?:(?<path>\/.+?))?(?:\?(?<query>.+?))?(?:#(?<fragment>.+?))?$