Welcome To Snipplr


Everyone's Recent Regular Expression Snippets



1 2 3 Next »
This email snippet was borrowed from (FlashJunior), the original snippit is: http://snipplr.com/view/7743/email-check/
0 80 posted 11 years ago by binarynomad
wiki files accumulate google-navclient-hilite junk created by the search highlighter in the google toolbar. Search the internet for "SPAN id google-navclient-hilite" and expect to see wiki entries with markup junk generated by the google toolbar....
0 115 posted 11 years ago by jimfred
US phone with or without parentheses
1 87 posted 11 years ago by binarynomad
Search for Social Security Numbers
1 92 posted 11 years ago by binarynomad
https://www.chrisjmendez.com/2008/10/18/search-for-mp3s-pdfs-or-comic-books-using-google/
1 161 posted 11 years ago by chrisaiv
This regular expression matches any trailing whitespace at the end of a line (whitespace and tabs). Replace this with nothing to remove trailing whitespace from files.
1 165 posted 11 years ago by kouphax
(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 192 posted 12 years ago by wizard04
Matches CSS-style comments spanning one or multiple lines
2 129 posted 12 years ago by mikegreen
(Supported by JavaScript, maybe other languages)
3 1010 posted 12 years ago by wizard04
By the legendary abigail. Fails to match if and only if it is matched against a prime number of 1's. That is, '11' fails, but '1111' does not. I once heard him talk why this works, but I forgot most of it.
3 107 posted 12 years ago by banzaiman
Convert headings to have id's with the content of the heading
2 73 posted 12 years ago by lagrangeapex
I use in textmate / e to convert whitespace to underscores.
6 101 posted 12 years ago by lagrangeapex
0 249 posted 12 years ago by axelitus
Developed for eclipse but prolly useful elsewhere, put the text after 'find' in the 'find' box and the text after 'replace' in 'replace'. Note: this example uses an html list item 'li', make sure to replace that with the tag you want to find
5 100 posted 13 years ago by rhlowe
If there will be multiple sets of these tags in a scanned XML string, you need the '?' after the '*' to specify a non-greedy (lazy) match.
4 220 posted 13 years ago by rengber
Matches any hex value (0123456789ABCDEF) preceded by the pound sign (#) of exactly 3 or 6 digits in length.
3 83 posted 13 years ago by Corhol
1 2 3 Next »