Welcome To Snipplr


Everyone's Recent Regular Expression Snippets Tagged javascript



« Prev 1 Next »
Regular Expression to find native Javascript console and AngularJS $log log warn or info that are NOT comments / commented out
1 899 posted 8 years ago by brandonjp
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 1339 posted 13 years ago by nkm
(Created for JavaScript) These are rather forgiving. Spaces, dashes, or periods are allowed as separators. Extensions can be recognized by several strings (#, x, x., ext, ext., extension). Area code: $1$2 Exchange code: $3 Station code: $...
1 962 posted 15 years ago by wizard04
Matches CSS-style comments spanning one or multiple lines
2 1060 posted 15 years ago by mikegreen
(Supported by JavaScript, maybe other languages)
3 5010 posted 15 years ago by wizard04
« Prev 1 Next »