Welcome To Snipplr
Everyone's Recent Regular Expression Snippets Tagged regexp
- 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
4091
posted 10 years ago by brandonjp
thanks to...
http://gskinner.com/RegExr/
http://daringfireball.net/2010/07/improved_regex_for_matching_urls
1
5441
posted 13 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
3056
posted 15 years ago by nkm
This snippet is useful if you want to extract the relevant parts out of an Date header field of an email message. It was created according to the [RFC 5322 rules](http://tools.ietf.org/html/rfc5322#page-15 "RFC 5322, Page 15"). It supports named capt...
1
2030
posted 16 years ago by dreadwarrior
Matches any hex value (0123456789ABCDEF) preceded by the pound sign (#) of exactly 3 or 6 digits in length.
3
1842
posted 19 years ago by Corhol
« Prev 1 Next »