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
903
posted 8 years ago by brandonjp
thanks to...
http://gskinner.com/RegExr/
http://daringfireball.net/2010/07/improved_regex_for_matching_urls
1
2040
posted 11 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
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
710
posted 14 years ago by dreadwarrior
Matches any hex value (0123456789ABCDEF) preceded by the pound sign (#) of exactly 3 or 6 digits in length.
3
610
posted 17 years ago by Corhol
« Prev 1 Next »