Распознание ссылок

SHOULD MATCH

SHOULD NOT MATCH

http://example.com // ​ domain.com ftp://example.com

http:// http://.

http://.. http://../ http://? http://?? http://??/ http://#

http://example.com/just/some/long/path http://habrahabr.ru/topic/232385/#fragment www.example.com http://habrahabr.ru/topic/232385/www.example.com // ​ www.example.com http://foo.bar?q=Spaces // ​ example.com ​ :8000 foo.com scheme://prefix.domain ​ :port/path/filename http://foo.com/blah_blah http://foo.com/blah_blah/ http://foo.com/blah_blah_ ​ (wikipedia) http://foo.com/blah_blah_ ​ (wikipedia)_(again) http://www.example.com/wpstyle/?p=364 https://www.example.com/foo/?bar=baz&inga=42&quux http:// ✪​ df.ws/123 http:// ​ shouldfail.com http://foo.bar/foo ​ (bar)baz quux ftps://foo.bar/ http://abc.b--c.de/ http://www.a--b--k.de/

http://## http://##/ //localhost/test/ // //a ///a /// http:///a rdar://1234 h://test :// should fail http://-error-.invalid/ http://a.b-.co http://0.0.0.0 http://10.1.1.0 http://10.1.1.255

Made with FlippingBook flipbook maker