Welcome To Snipplr
Everyone's Recent Regular Expression Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
Regular Expression to find native Javascript console and AngularJS $log log warn or info that are NOT comments / commented out
1
903
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
1348
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
971
posted 15 years ago by wizard04
« Prev 1 Next »