<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/regex</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 06 Sep 2008 22:20:24 GMT</pubDate>
<item>
<title>(Bash) grep for either of two strings</title>
<link>http://snipplr.com/view/6819/grep-for-either-of-two-strings/</link>
<description><![CDATA[ <p>Here's an example of using grep to filter for links that contain the string 'jpg' or 'gif'</p> ]]></description>
<pubDate>Fri, 20 Jun 2008 15:29:33 GMT</pubDate>
<guid>http://snipplr.com/view/6819/grep-for-either-of-two-strings/</guid>
</item>
<item>
<title>(Ruby) Regex replace</title>
<link>http://snipplr.com/view/5560/regex-replace/</link>
<description><![CDATA[ <p>Equivalent of the Perl code: url =~ s/foo/bar/</p> ]]></description>
<pubDate>Tue, 25 Mar 2008 14:09:21 GMT</pubDate>
<guid>http://snipplr.com/view/5560/regex-replace/</guid>
</item>
<item>
<title>(Bash) Tail requests for HTML files</title>
<link>http://snipplr.com/view/4069/tail-requests-for-html-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 05 Nov 2007 12:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/4069/tail-requests-for-html-files/</guid>
</item>
<item>
<title>(JavaScript) Kruse's hasClass</title>
<link>http://snipplr.com/view/3337/kruses-hasclass/</link>
<description><![CDATA[ <p>This Matt Kruse's hasClass function.</p> ]]></description>
<pubDate>Fri, 20 Jul 2007 19:06:22 GMT</pubDate>
<guid>http://snipplr.com/view/3337/kruses-hasclass/</guid>
</item>
<item>
<title>(Perl) command-line perl</title>
<link>http://snipplr.com/view/3145/commandline-perl/</link>
<description><![CDATA[ <p>couple of useful snippets from an article I found at Perl.com</p> ]]></description>
<pubDate>Wed, 04 Jul 2007 20:00:52 GMT</pubDate>
<guid>http://snipplr.com/view/3145/commandline-perl/</guid>
</item>
<item>
<title>(Perl) scraper</title>
<link>http://snipplr.com/view/3131/scraper/</link>
<description><![CDATA[ <p>For a while I used this to scrape weather.com.  Then they changed their HTML and my script broke.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:48:36 GMT</pubDate>
<guid>http://snipplr.com/view/3131/scraper/</guid>
</item>
<item>
<title>(Perl) id3.pl</title>
<link>http://snipplr.com/view/3129/id3pl/</link>
<description><![CDATA[ <p>This script takes a list of directories as its argument. 
  For mp3s that don't have any id3 information, guess      
  the name of the artist and track based on the filename   
  and use the MP3-Info module to insert that guess into    
  the file as id3v1 tags.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:40:18 GMT</pubDate>
<guid>http://snipplr.com/view/3129/id3pl/</guid>
</item>
<item>
<title>(Perl) Truncate filenames but keep file extensions intact</title>
<link>http://snipplr.com/view/3127/truncate-filenames-but-keep-file-extensions-intact/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:33:28 GMT</pubDate>
<guid>http://snipplr.com/view/3127/truncate-filenames-but-keep-file-extensions-intact/</guid>
</item>
<item>
<title>(Perl) Remove duplicate lines from a text file</title>
<link>http://snipplr.com/view/3124/remove-duplicate-lines-from-a-text-file/</link>
<description><![CDATA[ <p>Sometimes I get a big list of things, and some of the things occur multiple times in the same list.  A good example is a newline-delimited list of files: the same file path might be listed 4 or 5 times.  So this script removes those kinds of duplicate lines.

Found at Google Answers.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:06:34 GMT</pubDate>
<guid>http://snipplr.com/view/3124/remove-duplicate-lines-from-a-text-file/</guid>
</item>
<item>
<title>(Perl) Show JPEGs in this directory all on one page</title>
<link>http://snipplr.com/view/3122/show-jpegs-in-this-directory-all-on-one-page/</link>
<description><![CDATA[ <p>Dumps a list of image names into an HTML document, wrapped in centered IMG tags.  Features the CENTER tag for added historical value.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:57:11 GMT</pubDate>
<guid>http://snipplr.com/view/3122/show-jpegs-in-this-directory-all-on-one-page/</guid>
</item>
<item>
<title>(Perl) show JPEGs in this directory in a simple HTML gallery</title>
<link>http://snipplr.com/view/3121/show-jpegs-in-this-directory-in-a-simple-html-gallery/</link>
<description><![CDATA[ <p>Creates an HTML page with the first image in the directory in the center.  Forward and Back buttons scroll through all the images in the directory in order.

This is how I lived before Firefox ~.^</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:53:26 GMT</pubDate>
<guid>http://snipplr.com/view/3121/show-jpegs-in-this-directory-in-a-simple-html-gallery/</guid>
</item>
<item>
<title>(Perl) Examine CSS selectors in JSP files and report on whether they match some patterns</title>
<link>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</link>
<description><![CDATA[ <p>Processe a directory of JSP source files, looks for regex matches, and reports on the number and location of matches.  For detecting deprecated attributes in XHTML.

Uses Mail::Outlook to send an email.  Requires you to click "ok" each time a notification is sent, but gets around firewalls.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:27:59 GMT</pubDate>
<guid>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</guid>
</item>
<item>
<title>(Emacs Lisp) Emacs regular expression to match curly brackets without breaks before them</title>
<link>http://snipplr.com/view/2772/emacs-regular-expression-to-match-curly-brackets-without-breaks-before-them/</link>
<description><![CDATA[ <p>To be run from the mini-buffer.  For formatting CSS files.  Doesn't allow for whitespace :(  Use C-q C-j to insert the newline in the replacement string.</p> ]]></description>
<pubDate>Fri, 01 Jun 2007 12:44:29 GMT</pubDate>
<guid>http://snipplr.com/view/2772/emacs-regular-expression-to-match-curly-brackets-without-breaks-before-them/</guid>
</item>
<item>
<title>(Perl) rename - Larry Wall's filename fixer</title>
<link>http://snipplr.com/view/2677/rename--larry-walls-filename-fixer/</link>
<description><![CDATA[ <p>Invoke this script without any arguments to see the help text.  From the Perl Cookbook, Ch. 9.9.</p> ]]></description>
<pubDate>Mon, 21 May 2007 04:49:45 GMT</pubDate>
<guid>http://snipplr.com/view/2677/rename--larry-walls-filename-fixer/</guid>
</item>
<item>
<title>(JavaScript) Save application state in a cookie</title>
<link>http://snipplr.com/view/2586/save-application-state-in-a-cookie/</link>
<description><![CDATA[ <p>A variant of this code is in use on the My Organizer app at http://collegeboard.com/student/index.html?student</p> ]]></description>
<pubDate>Wed, 02 May 2007 14:13:52 GMT</pubDate>
<guid>http://snipplr.com/view/2586/save-application-state-in-a-cookie/</guid>
</item>
<item>
<title>(JavaScript) Use a regex on a multiline string</title>
<link>http://snipplr.com/view/2419/use-a-regex-on-a-multiline-string/</link>
<description><![CDATA[ <p>Apply string.replace() where string has line breaks, and .replace() only happens for the first line of the string!  The fix is to turn newlines into unicode characters, run the regex, then turn the unicode back into newlines.

From comp.lang.javascript (thanks, Evertjan):</p> ]]></description>
<pubDate>Fri, 30 Mar 2007 09:14:35 GMT</pubDate>
<guid>http://snipplr.com/view/2419/use-a-regex-on-a-multiline-string/</guid>
</item>
</channel>
</rss>