summaryrefslogtreecommitdiff
path: root/resources/src/mediawiki/mediawiki.Uri.strict.regexp
blob: 2ac7d2fce9e199af7ab916bb228db662e025da42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
^
(?:(?<protocol>[^:/?#]+):)?
(?://(?:
	(?:
		(?<user>[^:@/?#]*)
		(?::(?<password>[^:@/?#]*))?
	)?@)?
	(?<host>[^:/?#]*)
	(?::(?<port>\d*))?
)?
(?<path>(?:[^?#/]*/)*[^?#]*)
(?:\?(?<query>[^#]*))?
(?:\#(?<fragment>.*))?