Advertisement
Guest User

Untitled

a guest
Feb 1st, 2018
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. SHOULD MATCH:
  2.  
  3. http://foo.com/blah_blah
  4. http://foo.com/blah_blah/
  5. http://foo.com/blah_blah_(wikipedia)
  6. http://foo.com/blah_blah_(wikipedia)_(again)
  7. http://www.example.com/wpstyle/?p=364
  8. https://www.example.com/foo/?bar=baz&inga=42&quux
  9. http://✪df.ws/123
  10. http://142.42.1.1/
  11. http://142.42.1.1:8080/
  12. http://⌘.ws
  13. http://⌘.ws/
  14. http://foo.com/blah_(wikipedia)#cite-1
  15. http://foo.com/blah_(wikipedia)_blah#cite-1
  16. http://foo.com/unicode_(✪)_in_parens
  17. http://foo.com/(something)?after=parens
  18. http://code.google.com/events/#&product=browser
  19. http://j.mp
  20. http://foo.bar/?q=Test%20URL-encoded%20stuff
  21. http://مثال.إختبار
  22. http://例子.测试
  23. http://उदाहरण.परीक्षा
  24. http://1337.net
  25. http://a.b-c.de
  26. http://223.255.255.254
  27.  
  28. LOOKS OK BUT FACEBOOK DOESN'T ALLOW
  29. http://➡.ws/䨹
  30. http://☺.damowmow.com/
  31.  
  32. SHOULD NOT MATCH BECAUSE IT DOESN'T DIRECT TO A WEBSITE:
  33.  
  34. http://userid:password@example.com:8080
  35. http://userid:password@example.com:8080/
  36. http://userid@example.com
  37. http://userid@example.com/
  38. http://userid@example.com:8080
  39. http://userid@example.com:8080/
  40. http://userid:password@example.com
  41. http://userid:password@example.com/
  42. http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com
  43. ftp://foo.bar/baz
  44.  
  45. SHOULD NOT MATCH:
  46.  
  47. http://
  48. http://.
  49. http://..
  50. http://../
  51. http://?
  52. http://??
  53. http://??/
  54. http://#
  55. http://##
  56. http://##/
  57. http://foo.bar?q=Spaces should be encoded
  58. //
  59. //a
  60. ///a
  61. ///
  62. http:///a
  63. foo.com
  64. rdar://1234
  65. h://test
  66. http:// shouldfail.com
  67. :// should fail
  68. http://foo.bar/foo(bar)baz quux
  69. ftps://foo.bar/
  70. http://-error-.invalid/
  71. http://a.b--c.de/
  72. http://-a.b.co
  73. http://a.b-.co
  74. http://0.0.0.0
  75. http://10.1.1.0
  76. http://10.1.1.255
  77. http://224.1.1.1
  78. http://1.1.1.1.1
  79. http://123.123.123
  80. http://3628126748
  81. http://.www.foo.bar/
  82. http://www.foo.bar./
  83. http://.www.foo.bar./
  84. http://10.1.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement