Add url-parser.regex

This commit is contained in:
Zakary Timson 2023-08-03 00:31:17 +00:00
parent e1bdb2df01
commit 590b862263

1
url-parser.regex Normal file
View File

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