<?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>Tech.It.2.Me-&#62;{By.Anton.Perez} &#187; Book Review</title>
	<atom:link href="http://antonperez.com/category/book-review/feed/" rel="self" type="application/rss+xml" />
	<link>http://antonperez.com</link>
	<description>Technical satisfaction guaranteed...</description>
	<lastBuildDate>Fri, 13 Apr 2012 03:32:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Your personal regex coach and more</title>
		<link>http://antonperez.com/2007/05/17/your-personal-regex-coach-and-more/</link>
		<comments>http://antonperez.com/2007/05/17/your-personal-regex-coach-and-more/#comments</comments>
		<pubDate>Thu, 17 May 2007 20:22:47 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Book Review]]></category>
		<category><![CDATA[General Development]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=148</guid>
		<description><![CDATA[If you&#8217;ve worked on text parsing projects &#8211; or an app that needed it &#8211; then you know what regular expressions are. It truly has been a lifesaver for me on many, many occassions. If, however, you haven&#8217;t dealt with it before, here&#8217;s some background on it: According to Wikipedia, in computing, a regular expression [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve worked on text parsing projects &#8211; or an app that needed it &#8211; then you know what <a href="http://en.wikipedia.org/wiki/Regular_expression" title="regular expressions" target="_blank">regular expressions</a> are.  It truly has been a lifesaver for me on many, many occassions.  If, however, you haven&#8217;t dealt with it before, here&#8217;s some background on it:</p>
<blockquote><p>According to Wikipedia, in <a href="http://en.wikipedia.org/wiki/Computing">computing</a>, a <strong>regular expression</strong> is a <a href="http://en.wikipedia.org/wiki/String_%28computer_science%29">string</a> that is used to describe or match a <a href="http://en.wikipedia.org/wiki/Set_%28computer_science%29">set</a> of strings, according to certain <a href="http://en.wikipedia.org/wiki/Syntax">syntax</a> rules.</p></blockquote>
<p>For example, to capture the word <strong>Perl </strong>in the text below, you would use the following expression: <font color="#0000ff" face="Courier New" size="2">.*(Perl)</font>.</p>
<blockquote><p>Regular expressions are used by many text editors and utilities to search and manipulate bodies of text based on certain patterns. Many programming languages support regular expressions for string manipulation. For example, Perl and Tcl have a powerful regular expression engine built directly into their syntax.</p></blockquote>
<p><font color="#000000"><strong>How does it work?</strong></font></p>
<ul>
<li><font color="#0000ff" face="Courier New" size="2">.</font> (dot) means match <u>anything</u></li>
<li><font color="#0000ff" face="Courier New" size="2">*</font> (asterisk) means match the previous character <u>0 or more times</u></li>
<li><font color="#0000ff" face="Courier New" size="2">(Perl)</font> (open &amp; close parenthesis) mean <u>capture</u> whatever&#8217;s in it</li>
</ul>
<p>A tool that I personally use to learn, construct, and test regular expressions is called: <a href="http://weitz.de/regex-coach/" title="The Regex Coach" target="_blank">The Regex Coach</a>.  This tool offers many views to show how the <a href="http://www.regular-expressions.info/engine.html" title="regex engine" target="_blank">regex engine</a> parses text, which garners you knowledge on how it works internally, so you can write more advanced expressions.</p>
<p>Here&#8217;s what the tool looks like:</p>
<p><a href="http://antonperez.com/wp-content/uploads/2007/05/windowslivewriteryourpersonalregexcoach-a8e4image031.png"><img src="http://antonperez.com/wp-content/uploads/2007/05/windowslivewriteryourpersonalregexcoach-a8e4image022.png" title="The Regex Coach" alt="The Regex Coach" height="193" width="240" /></a></p>
<p>To end this post, I highly recommend reading <a href="http://www.oreilly.com/catalog/regex/" title="Master Regular Expressions by Jeffrey E. F. Freidl" target="_blank">Master Regular Expressions by Jeffrey E. F. Freidl</a> to learn how/when to use it and the text-processing power it offers.  This book, in my opinion, reads like a novel and is the best book on regular expressions.Take care!  =0)</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/05/17/your-personal-regex-coach-and-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

