<?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>My Piece of the Inter(.)net &#187; Regular Expressions</title>
	<atom:link href="http://mypieceoftheinter.net/tag/regular-expressions/feed" rel="self" type="application/rss+xml" />
	<link>http://mypieceoftheinter.net</link>
	<description>A place for my geekish ramblings or whatever I find interesting.</description>
	<lastBuildDate>Mon, 16 Jan 2012 16:35:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Use C#&#8217;s regular expression library to Convert TimeSpan and DateTime to and from strings. (Named capturing groups!)</title>
		<link>http://mypieceoftheinter.net/archives/2175</link>
		<comments>http://mypieceoftheinter.net/archives/2175#comments</comments>
		<pubDate>Tue, 21 Dec 2010 01:36:45 +0000</pubDate>
		<dc:creator>David McGrath</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://mypieceoftheinter.net/archives/2175</guid>
		<description><![CDATA[Well that title is a mouthful.&#160; Long story short, as an exercise in regular expressions I wrote a utility class to convert strings to TimeSpans and DateTimes in C#.&#160; This made great usage of named capturing groups.&#160; (The download to the source code is at the bottom of this post.) Here is the DateTime regular [...]]]></description>
			<content:encoded><![CDATA[<p>Well that title is a mouthful.&#160; Long story short, as an exercise in regular expressions I wrote a utility class to convert strings to TimeSpans and DateTimes in C#.&#160; This made great usage of named capturing groups.&#160; (The download to the source code is at the bottom of this post.)</p>
<p>Here is the DateTime regular expression.&#160; Note that when I new the regular expression object, I set whitespace and casing ignoring.    <br /><img style="display: inline" title="image" alt="image" src="http://mypieceoftheinter.net/wp-content/uploads/2010/12/image.png" width="322" height="326" /></p>
<p>Named capturing groups allows code like this:    <br /><img style="display: inline" title="image" alt="image" src="http://mypieceoftheinter.net/wp-content/uploads/2010/12/image1.png" width="480" height="108" /></p>
<p>In the end, the utility class allows code like this:    <br /><a href="http://mypieceoftheinter.net/wp-content/uploads/2010/12/image2.png"><img style="display: inline" title="image" alt="image" src="http://mypieceoftheinter.net/wp-content/uploads/2010/12/image_thumb.png" width="578" height="43" /></a></p>
<p>fun!&#160; Download all of the code <a href="http://download.somewhatgeeky.com/time_utils">here</a>.</p>
<p>Have any suggestions about the code?&#160; Any neat C# features I should have used?&#160; Comment below!</p>
]]></content:encoded>
			<wfw:commentRss>http://mypieceoftheinter.net/archives/2175/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FRI is dead, but its spirit lives on</title>
		<link>http://mypieceoftheinter.net/archives/1839</link>
		<comments>http://mypieceoftheinter.net/archives/1839#comments</comments>
		<pubDate>Mon, 12 Oct 2009 04:01:38 +0000</pubDate>
		<dc:creator>David McGrath</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Arcadia]]></category>
		<category><![CDATA[C Plus Plus]]></category>
		<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[Emulation]]></category>
		<category><![CDATA[FRI]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[ROMs]]></category>

		<guid isPermaLink="false">http://mypieceoftheinter.net/?p=1839</guid>
		<description><![CDATA[It&#8217;s been almost a year since I&#8217;ve updated FRI, my ROM library program. FRI is now officially dead, but not completely gone. Since I started working on FRI I have gained a lot more programming experience. I started writing the thing when I was still a C# novice. Between then and now I have written [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been <a href="http://mypieceoftheinter.net/archives/990">almost a year since</a> I&#8217;ve updated <a href="http://mypieceoftheinter.net/tag/fri">FRI</a>, my ROM library program.  FRI is now officially dead, but not completely gone.  Since I started working on FRI I have gained a lot more programming experience.  I started writing the thing when I was still a <a href="http://en.wikipedia.org/wiki/C_Sharp_(programming_language)">C#</a> novice.  Between then and now I have written an elaborate intranet site in <a href="http://en.wikipedia.org/wiki/Asp.net">ASP.NET</a>, debugged and written C++ applications, and have learned the true value of a <a href="http://en.wikipedia.org/wiki/Regular_expression">regular expression</a>.  I look at FRI&#8217;s code now and am a little grossed out.   I decided that if I was going to make any more improvements to FRI, I&#8217;d have to start over and rearchitect the whole thing.  The name of this new project: Arcadia.</p>
<p>With Arcadia I have committed to research everything that I suspect will make for a better design.  Because of this, Archaida&#8217;s backend is shaping up to be elegant and efficient.  I researched how to do inheritance in C#, and have used that to save myself from writing a lot of code.  This has drastically decreased development and testing time.  I learned how to use basic regular expressions over the summer, and have used them in some areas (more on that later).  For the frontend I decided to switch from <a href="http://en.wikipedia.org/wiki/Windows_Forms">WinForms </a>to <a href="http://en.wikipedia.org/wiki/Windows_Presentation_Foundation">WPF</a>.  All I can say is that <a href="http://en.wikipedia.org/wiki/Databinding">databinding </a>is epic, and I still have a lot more to learn about it.</p>
<p>Here&#8217;s a shot of Arcadia in its current form:<br />
<br />
<img class="alignnone size-full wp-image-1842" title="Arcadia prealpha" src="http://mypieceoftheinter.net/wp-content/uploads/2009/10/archadia_prealpha.PNG" alt="Arcadia prealpha" width="729" height="533" /></p>
<p><span id="more-1839"></span></p>
<p>I&#8217;ll hopefully release an alpha soon.</p>
<p><em>edit October 12, 2009 at 10:57am:</em><br />
<br />  Also generics.  Generics are amazing.  (More on that later, too.)</p>
]]></content:encoded>
			<wfw:commentRss>http://mypieceoftheinter.net/archives/1839/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

