<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gnucom.cc &#187; regex</title>
	<atom:link href="http://blog.gnucom.cc/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gnucom.cc</link>
	<description>Code snippets and more...</description>
	<lastBuildDate>Wed, 18 Jan 2012 23:50:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>My most used Perl regular expressions.</title>
		<link>http://blog.gnucom.cc/2009/favorite-perl-regular-expressions/</link>
		<comments>http://blog.gnucom.cc/2009/favorite-perl-regular-expressions/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 00:54:21 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://gnucom.cc/blog/?p=113</guid>
		<description><![CDATA[Match full path of image and extention and store in an array. my @arr = ($string =~ m/([\/A-Za-z0-9_\-]+\.(?:jpg&#124;png))/g); Add something to the end of a line. $string =~ s/(.*)/$1 something/; Add something to the beginning of a line. $string =~ s/(.*)/something $1/; Match an HTML &#60;img&#62; tag. $string =~ m/(&#60;img.*?&#62;)/;]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2009/favorite-perl-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing leading whitespace in file with perl.</title>
		<link>http://blog.gnucom.cc/2009/removing-leading-whitespace-in-file-with-perl/</link>
		<comments>http://blog.gnucom.cc/2009/removing-leading-whitespace-in-file-with-perl/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 02:19:39 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[one-liner]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://gnucom.cc/blog/?p=101</guid>
		<description><![CDATA[Do you ever have code with such poor formatting that you just need to start over? This will let you remove all leading whitespace from every line in the file. I&#8217;ve found it handy every now and then. perl -i -pe's/^\s+//' file.c]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2009/removing-leading-whitespace-in-file-with-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My most used VIM regular expressions.</title>
		<link>http://blog.gnucom.cc/2009/favorite-vim-regular-expressions/</link>
		<comments>http://blog.gnucom.cc/2009/favorite-vim-regular-expressions/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 01:33:09 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://gnucom.cc/blog/?p=75</guid>
		<description><![CDATA[Delete all lines in a file except those that start with &#8220;#&#8221;. :g/^[^#].*$/d Text search/replace. Transform line &#8216;wget http://gnucom.cc/some_backup.tar.gz&#8217; into &#8216;/scripts/restorepkg some_backup.tar.gz&#8217;. This one is helpful for cPanel administrators. :%s/wget http:.*\//\/scripts\/restorepkg /g Add something to the end of every line of a file. :%s/$/something/g Add something to the beginning of every line of a file. [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2009/favorite-vim-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

