<?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>blog.autopsy.se &#187; Named Capture</title>
	<atom:link href="http://blog.autopsy.se/tag/named-capture/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.autopsy.se</link>
	<description>basically; it sucks. everything sucks. but.. in a good way..</description>
	<lastBuildDate>Mon, 02 Aug 2010 16:14:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Perl 5.8.8 sucks, or the lack of Perl 5.10 on my box sucks! Really</title>
		<link>http://blog.autopsy.se/2009/01/perl-588-sucks-or-the-lack-of-perl-510-on-my-box-sucks-really/</link>
		<comments>http://blog.autopsy.se/2009/01/perl-588-sucks-or-the-lack-of-perl-510-on-my-box-sucks-really/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 01:44:34 +0000</pubDate>
		<dc:creator>ube</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Named Capture]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[RegExp]]></category>
		<category><![CDATA[Sucks! (Really!)]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.autopsy.se/?p=55</guid>
		<description><![CDATA[Been struggling with a regexp using perl since I couldn't get sed to work as I wanted (mainly "+" sucks with sed). These are my tests: # echo cold.case.S01E12.qweqwe &#124;perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)&#124;(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/' cold.case    01 12 #echo cold_case.1x12 &#124; perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)&#124;(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/' cold_case 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Been struggling with a regexp using perl since I couldn't get sed to work as I wanted (mainly "+" sucks with sed).</p>
<p><span id="more-55"></span></p>
<p>These are my tests:</p>
<p># echo cold.case.S01E12.qweqwe |perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)|(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/'<br />
cold.case    01 12<br />
#echo cold_case.1x12 | perl -pe 's/^(?:(.*)\.(\d+)x(\d+).*)|(?:(.*)\.S(\d+)E(\d+)).*$/\1 \2 \3 \4 \5 \6 \7/'<br />
cold_case 1 12</p>
<p>Notice the three spaces in front of cold.case? It's because I can't get perl to do an alternate match. A friend came up with the following line:<br />
perl -pe 's/(?:^(?&lt;a&gt;.*)\.(?&lt;b&gt;[0-9])+x(?&lt;c&gt;[0-9]+).*$)|(?:^(?&lt;a&gt;.*)\.S(?&lt;b&gt;[0-9]+)E(?&lt;c&gt;[0-9]+).*$)/$+{a} $+{b} $+{c}/'<br />
Which works just fine, if you're running Perl 5.10, and I'm not! Or, it's not in the Gentoo repository yet. So I'll have to wait. Crap!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.autopsy.se/2009/01/perl-588-sucks-or-the-lack-of-perl-510-on-my-box-sucks-really/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
