Welcome To Snipplr


Everyone's Recent Regular Expression Snippets Tagged url



« Prev 1 Next »
thanks to... http://gskinner.com/RegExr/ http://daringfireball.net/2010/07/improved_regex_for_matching_urls
1 4900 posted 12 years ago by brandonjp
1 3202 posted 15 years ago by darronz
PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs. Tested with Javascript and PHP.
1 2498 posted 15 years ago by nkm
1 1054 posted 15 years ago by arpit
Matches are as follows: 0 = protocol 1 = fqdn 2 = subdomain 3 = top level subdomain 4 = domain (blah.com) 5 = port 6 = path 7 = query string 8 = hash
1 1253 posted 16 years ago by remotezygote
(Supported by JavaScript, maybe other languages)
3 6607 posted 17 years ago by wizard04
« Prev 1 Next »