<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Missing Monkey Head</title>
	<atom:link href="http://xiix.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://xiix.wordpress.com</link>
	<description>hockey, macs, python and growing up</description>
	<pubDate>Thu, 17 Jul 2008 23:00:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Beanlet Blog Update 5</title>
		<link>http://xiix.wordpress.com/2008/07/17/beanlet-blog-update-5/</link>
		<comments>http://xiix.wordpress.com/2008/07/17/beanlet-blog-update-5/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 23:00:46 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1098</guid>
		<description><![CDATA[In which Erin gets great news.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://beanlet.wordpress.com/">In which Erin gets great news.</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1098/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1098/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1098/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1098/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1098/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1098/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1098/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1098/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1098/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1098/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1098/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1098/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1098&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/07/17/beanlet-blog-update-5/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Questions of the Day</title>
		<link>http://xiix.wordpress.com/2008/07/09/questions-of-the-day/</link>
		<comments>http://xiix.wordpress.com/2008/07/09/questions-of-the-day/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 23:18:39 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Random Shit]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1097</guid>
		<description><![CDATA[Q: How does a very large, very dead, very fly-ridden mouse end up on the 2nd floor deck?
A: I have no idea, but that shit was gross.
Q: How does one properly dispose of said corpse?
A: It&#8217;s a trade secret, but the items you&#8217;ll need include: a stick, an empty shoe box, and lots of duct [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Q</strong>: How does a very large, very dead, very fly-ridden mouse end up on the 2nd floor deck?</p>
<p><strong>A</strong>: I have no idea, but that shit was gross.</p>
<p><strong>Q</strong>: How does one properly dispose of said corpse?</p>
<p><strong>A</strong>: It&#8217;s a trade secret, but the items you&#8217;ll need include: a stick, an empty shoe box, and lots of duct tape.</p>
<p><em>Note to wife</em>: <strong>DO NOT</strong> open the pink shoe box with duct tape on it!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1097/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1097/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1097/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1097/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1097/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1097/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1097/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1097/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1097/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1097/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1097/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1097/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1097&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/07/09/questions-of-the-day/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Beanlet Blog Update 4</title>
		<link>http://xiix.wordpress.com/2008/07/08/beanlet-blog-update-4/</link>
		<comments>http://xiix.wordpress.com/2008/07/08/beanlet-blog-update-4/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 01:50:31 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1096</guid>
		<description><![CDATA[In which Erin learns that not all is as it seems. Or at least, all is not as it was promised. I refrain from cussing, but it&#8217;s not that difficult to fill in the fucking blanks.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://beanlet.wordpress.com/2008/07/08/one-result-two-reactions/">In which Erin learns that not all is as it seems. Or at least, all is not as it was promised. I refrain from cussing, but it&#8217;s not that difficult to fill in the fucking blanks.</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1096/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1096/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1096/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1096/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1096/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1096&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/07/08/beanlet-blog-update-4/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>One-Way Ticket from Denver to D.C.</title>
		<link>http://xiix.wordpress.com/2008/07/02/one-way-ticket-from-denver-to-dc/</link>
		<comments>http://xiix.wordpress.com/2008/07/02/one-way-ticket-from-denver-to-dc/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 21:49:49 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Hockey]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1095</guid>
		<description><![CDATA[In my previous post &#8220;Why the Caps Need to Sign Huet&#8220;, I argued that Huet performed better than the Caps&#8217; other goaltenders in the 2007-2008 NHL season, at least with respect to their goals-against averages, and save percent.
One day after Huet signed with Chicago, and the Caps signed Jose Theodore, I wondered how he stacked up [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In my previous post &#8220;<a href="http://xiix.wordpress.com/2008/06/10/why-the-caps-need-to-sign-huet/">Why the Caps Need to Sign Huet</a>&#8220;, I argued that Huet performed better than the Caps&#8217; other goaltenders in the 2007-2008 NHL season, at least with respect to their goals-against averages, and save percent.</p>
<p>One day after Huet signed with Chicago, and the Caps signed Jose Theodore, I wondered how he stacked up against those 3 netminders from last year. The previous post&#8217;s calculations for all 3 guys included <i>only</i> games played as a Washington Capital. Since Theodore has yet to make his debut at Verizon Center, his GAA and SV% were calculated using all his games from this past year (regular season and playoffs) for the Avalanche.</p>
<p>Here&#8217;s the dirt. Reference that other post for the GAA and SV% algorithms.</p>
<table border="1" cellspacing="0" cellpadding="4">
<tr>
<td><b>Goalie</b></td>
<td><b>Minutes Played</b></td>
<td><b>Total Shots</b></td>
<td><b>Total Goals</b></td>
<td><b>GAA</b></td>
<td><b>SV%</b></td>
</tr>
<tr>
<td>Kolzig</td>
<td>3,154</td>
<td>1,423</td>
<td>153</td>
<td>2.91</td>
<td>0.892</td>
</tr>
<tr>
<td>Johnson</td>
<td>1,032</td>
<td>500</td>
<td>46</td>
<td>2.67</td>
<td>0.908</td>
</tr>
<tr>
<td>Huet</td>
<td>1,222</td>
<td>571</td>
<td>43</td>
<td>2.11</td>
<td>0.925</td>
</tr>
<tr>
<td>Theodore</td>
<td>3,542</td>
<td>1,653</td>
<td>150</td>
<td>2.54</td>
<td>0.909</td>
</tr>
</table>
<p>I suppose a case could be made that by counting only Huet&#8217;s 20.3 games as a Capital artificially inflates his stats. But I&#8217;d point out that Johnson played only 17.2 games last year.</p>
<p>From a purely statistical standpoint, Theodore is better than both Kolzig and Johnson, but not as good as Huet by a long shot.</p>
<p>Their career stats tell a different story. That is&#8211;for all intents and purposes&#8211;they&#8217;re pretty much interchangeable. Here&#8217;s hoping that Theodore, standing in net behind the same guys as those other 3 Caps goalies, can match Huet&#8217;s success.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1095/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1095/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1095/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1095/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1095&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/07/02/one-way-ticket-from-denver-to-dc/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Beanlet Blog Update 3</title>
		<link>http://xiix.wordpress.com/2008/07/01/beanlet-blog-update-3/</link>
		<comments>http://xiix.wordpress.com/2008/07/01/beanlet-blog-update-3/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 03:49:44 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1094</guid>
		<description><![CDATA[In which we learn something truly amazing&#8211;or truly fucked-up&#8211;about Erin&#8217;s placenta. Also, new images of The Beanlet, including his impersonations of 2 famous music stars&#8230; and his massive balls.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://beanlet.wordpress.com/">In which we learn something truly amazing&#8211;or truly fucked-up&#8211;about Erin&#8217;s placenta. Also, new images of The Beanlet, including his impersonations of 2 famous music stars&#8230; and his massive balls.</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1094/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1094/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1094/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1094/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1094/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1094&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/07/01/beanlet-blog-update-3/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Beanlet Blog Update 2</title>
		<link>http://xiix.wordpress.com/2008/06/30/beanlet-blog-update-2/</link>
		<comments>http://xiix.wordpress.com/2008/06/30/beanlet-blog-update-2/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 23:05:04 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1093</guid>
		<description><![CDATA[In which we discuss the not-so-common phenomenon called placenta previa.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://beanlet.wordpress.com/">In which we discuss the not-so-common phenomenon called <i>placenta previa</i></a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1093/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1093/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1093/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1093&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/06/30/beanlet-blog-update-2/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Python Regex for MAC Addresses</title>
		<link>http://xiix.wordpress.com/2008/06/26/python-regex-for-mac-addresses/</link>
		<comments>http://xiix.wordpress.com/2008/06/26/python-regex-for-mac-addresses/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 20:50:30 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1090</guid>
		<description><![CDATA[Post #1,000 on this blog. Fitting that it&#8217;s Python nerd shit, huh?
I needed a way to search for MAC addresses, which are unique identifiers for networking hardware. For example, if your computer has a built-in Ethernet port, as well as wireless capability, then it has 2 MAC addresses. These are always 6 groups of 2 [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Post #1,000 on this blog. Fitting that it&#8217;s Python nerd shit, huh?</p>
<p>I needed a way to search for MAC addresses, which are unique identifiers for networking hardware. For example, if your computer has a built-in Ethernet port, as well as wireless capability, then it has 2 MAC addresses. These are always 6 groups of 2 hexadecimal characters (0 through 9, and A through F). E.g., a valid MAC address would be: 01:98:DF:9E:10:37. Theoretically, every MAC address on every computer in the world will be unique, as the naming scheme provides over 281 trillion possible combinations (281,474,976,710,656).</p>
<p>Canonically these groups of 2 hex digits are separated by a colon, but many people record them with hyphens instead. So I needed to search for this particular pattern of characters amid a potentially-vast amount of text. Enter regular expressions (which I totally suck at using).</p>
<p>The regex I came up with is:</p>
<pre>
([a-fA-F0-9]{2}[:|\-]?){6}
</pre>
<p>Going through it, piece by piece:<br />
<b>[a-fA-F0-9]</b> = find any character A-F, upper and lower case, as well as any number<br />
[a-fA-F0-9]<b>{2}</b> = find that twice in a row<br />
[a-fA-F0-9]{2}<b>[:|\-]</b> = followed by either a &#8220;:&#8221; or a &#8220;-&#8221; character (the backslash escapes the hyphen, since the hyphen itself is a valid metacharacter for that type of expression; this tells the regex to look for the hyphen character, and ignore its role as an operator in this piece of the expression)<br />
[a-fA-F0-9]{2}[:|\-]<b>?</b> = make that final &#8220;:&#8221; or &#8220;-&#8221; character optional; since the last pair of characters won&#8217;t be followed by anything, and we want them to be included, too; that&#8217;s a chunk of 2 or 3 characters, so far<br />
<b>(</b>[a-fA-F0-9]{2}[:|\-]?<b>){6}</b> = find this type of chunk 6 times in a row</p>
<p>Let&#8217;s give it a shot.</p>
<p>First, a list of strings&#8230; e.g., a row from a comma-delimited file (returned via the <em>csv</em> module):</p>
<pre>
import re
L = ['aseredf', '55:A8:99:66:77:11', 'wefgcre', '98-75-64-52-48-21']
X = '([a-fA-F0-9]{2}[:|\-]?){6}' # this is the regex
for s in L:
    a = re.compile(X).search(s)
    if a:
        print s[a.start(): a.end()]
</pre>
<p>Run it:</p>
<pre>
[gary@roscoe ~]$ python test.py
55:A8:99:66:77:11
98-75-64-52-48-21
</pre>
<p>Next, a string:</p>
<pre>
import re
L = 'aseredf 55:A8:99:66:77:11 wefgcre 98-75-64-52-48-21'
X = '([a-fA-F0-9]{2}[:|\-]?){6}' # same regex as above
c = re.compile(X).finditer(L)
if c:
    for y in c:
        print L[y.start(): y.end()]
</pre>
<p>Run it:</p>
<pre>
[gary@roscoe ~]$ python test.py
55:A8:99:66:77:11
98-75-64-52-48-21
</pre>
<p>Fuckin&#8217; bickety-bam, the whole stage comes crashing down.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1090/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1090/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1090/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1090&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/06/26/python-regex-for-mac-addresses/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Beanlet Blog Update 1</title>
		<link>http://xiix.wordpress.com/2008/06/23/beanlet-blog-update-1/</link>
		<comments>http://xiix.wordpress.com/2008/06/23/beanlet-blog-update-1/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 03:19:58 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1089</guid>
		<description><![CDATA[As promised, I updated The Beanlet Blog.
The latest post includes an image from the 20-week sonogram.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As promised, I updated <a href="http://beanlet.wordpress.com/">The Beanlet Blog</a>.</p>
<p>The latest post includes an image from the 20-week sonogram.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1089/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1089/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1089/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1089&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/06/23/beanlet-blog-update-1/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>The Beanlet Blog</title>
		<link>http://xiix.wordpress.com/2008/06/23/the-beanlet-blog/</link>
		<comments>http://xiix.wordpress.com/2008/06/23/the-beanlet-blog/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 20:00:27 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1088</guid>
		<description><![CDATA[I promised Erin that I would not use profanity on the new baby website. A completely separate blog seemed to be in order.
http://beanlet.wordpress.com/
Note the permanent link over in the right sidebar under &#8220;See Also&#8221;.
I&#8217;ve cross-posted 2 (edited) posts from here, and will be adding to that blog soon (hopefully tonight). Also, I&#8217;m hoping to get [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I promised Erin that I would <i>not</i> use profanity on the new baby website. A completely separate blog seemed to be in order.</p>
<p><a href="http://beanlet.wordpress.com/">http://beanlet.wordpress.com/</a></p>
<p>Note the permanent link over in the right sidebar under &#8220;See Also&#8221;.</p>
<p>I&#8217;ve cross-posted 2 (edited) posts from here, and will be adding to that blog soon (hopefully tonight). Also, I&#8217;m hoping to get Erin in on the blogging over there&#8230; it must get tiresome reading only my view of the baby situation.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1088/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1088/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1088/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1088&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/06/23/the-beanlet-blog/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
		<item>
		<title>Overheard in iChat: Part 6</title>
		<link>http://xiix.wordpress.com/2008/06/23/overheard-in-ichat-part-6/</link>
		<comments>http://xiix.wordpress.com/2008/06/23/overheard-in-ichat-part-6/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 19:03:55 +0000</pubDate>
		<dc:creator>Gary</dc:creator>
		
		<category><![CDATA[Overheard in iChat]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[Spawn]]></category>

		<guid isPermaLink="false">http://xiix.wordpress.com/?p=1087</guid>
		<description><![CDATA[Me: Erin found some baby clothes that said something on the front in PHP.
Me: Like: &#60;?php &#8220;baby();&#8221;&#62; or something like that.
Me: So that made me think: &#8220;Python onesie&#8221;.

class Baby(Human):
   def __init__(self):
       return self

Gregg: Isn&#8217;t that a singleton?
Me: I don&#8217;t know what a &#8220;singleton&#8221; is&#8230; at least how it relates to programming.
Gregg: A class [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Me</b>: Erin found some baby clothes that said something on the front in PHP.</p>
<p><b>Me</b>: Like: &lt;?php &#8220;baby();&#8221;&gt; or something like that.</p>
<p><b>Me</b>: So that made me think: &#8220;Python onesie&#8221;.</p>
<pre>
class Baby(Human):
   def __init__(self):
       return self
</pre>
<p><b>Gregg</b>: Isn&#8217;t that a singleton?</p>
<p><b>Me</b>: I don&#8217;t know what a &#8220;singleton&#8221; is&#8230; at least how it relates to programming.</p>
<p><b>Gregg</b>: A class that only exists to return a single object.</p>
<p><b>Me</b>: Then, yes, it would be.</p>
<p><b>Gregg</b>: Technically, I guess it should test if other instances exist and either kill them or refuse to create.</p>
<p><b>Gregg</b>: But it&#8217;s a fucking baby thing, there&#8217;s not enough space on the child&#8217;s front for real design patterns.</p>
<p><b>Gregg</b>: Looking over those last few lines, I now know why I never get invited to parties.</p>
<p><b>Me</b>: You wouldn&#8217;t want to imply that the baby kills other instances of Baby which subclass Human.</p>
<p><b>Me</b>: Not yet, anyway.</p>
<p><b>Me</b>: You could always subclass differently to imply it.</p>
<pre>
class Baby(Cthulu):
    RECURSION
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xiix.wordpress.com/1087/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xiix.wordpress.com/1087/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xiix.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xiix.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xiix.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xiix.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xiix.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xiix.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xiix.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xiix.wordpress.com/1087/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xiix.wordpress.com/1087/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xiix.wordpress.com/1087/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xiix.wordpress.com&blog=730613&post=1087&subd=xiix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://xiix.wordpress.com/2008/06/23/overheard-in-ichat-part-6/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/xiix-128.jpg" medium="image">
			<media:title type="html">Gary</media:title>
		</media:content>
	</item>
	</channel>
</rss>