<?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>arcster.com Blog &#187; Regular Expressions</title>
	<atom:link href="http://blog.arcster.com/blog/index.php/category/regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arcster.com</link>
	<description>These fragments I have shored against my ruins</description>
	<lastBuildDate>Sun, 11 Sep 2011 00:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>The never-ending awesomeness of regular expressions</title>
		<link>http://blog.arcster.com/2011/03/regexp/</link>
		<comments>http://blog.arcster.com/2011/03/regexp/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 20:05:33 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://blog.arcster.com/?p=292</guid>
		<description><![CDATA[So I had a bunch of names and for privacy purposes I wanted to abbreviate the last name to show only the first letter. Hours of tedious work, right? Wrong! I put this in the find what box of Dreamweaver &#8230; <a href="http://blog.arcster.com/2011/03/regexp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I had a bunch of names and for privacy purposes I wanted to abbreviate the last name to show only the first letter. Hours of tedious work, right? Wrong!</p>
<p>I put this in the find what box of Dreamweaver<br />
<code>([A-Z]{1})([a-z]{3,})</code><br />
And this in the Replace With box<br />
<code>$1</code><br />
And I was good to go!</p>
<p>Of course, I could also have dumped the names into Excel and done a Left function on them&#8230; I guess there are lots of ways to skin that cat.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2011/03/regexp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Linux/regexp tips</title>
		<link>http://blog.arcster.com/2010/02/quick-linuxregexp-tips/</link>
		<comments>http://blog.arcster.com/2010/02/quick-linuxregexp-tips/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 21:00:51 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[linux newbie]]></category>

		<guid isPermaLink="false">http://arcster.com/blog/?p=128</guid>
		<description><![CDATA[To get info on your environment: env to do a case-insensitive searc for .pm files in /usr and subfolders: find /usr -iname '*.pm' To get a terminal type xfce4-terminal in the Alt+F2 box To find a string of alpha characters &#8230; <a href="http://blog.arcster.com/2010/02/quick-linuxregexp-tips/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To get info on your environment: env</p>
<p>to do a case-insensitive searc for .pm files in /usr and subfolders:<br />
<code>find /usr -iname '*.pm'</code><br />
To get a terminal type xfce4-terminal in the Alt+F2 box</p>
<p>To find a string of alpha characters between 100 and 200 characters long in finnwake.txt:</p>
<pre>grep "[A-Za-z]\{100,200\}" finnwake.txt</pre>
<p>To find words between 25 and 30 characters without vowels:</p>
<pre>grep -w "[^aeiouy]\{25,30\}" finnwake.txt</pre>
<p>to exit a MAN screen, use q</p>
<p>to page down in a MAN screen, use f</p>
<p>to page up in a MAN screen, use b</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2010/02/quick-linuxregexp-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and replace for fixed width text in Microsoft Word</title>
		<link>http://blog.arcster.com/2009/08/find-and-replace-in-microsoft-word/</link>
		<comments>http://blog.arcster.com/2009/08/find-and-replace-in-microsoft-word/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:57:12 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://arcster.com/blog/?p=123</guid>
		<description><![CDATA[If you have rows of fixed-width data (in this case the first 12 characters of each row) and you want to put a tab at the end, put this in your &#8220;Find what&#8221; box in Microsoft Word: (^13*{12}) and put &#8230; <a href="http://blog.arcster.com/2009/08/find-and-replace-in-microsoft-word/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have rows of fixed-width data (in this case the first 12 characters of each row) and you want to put a tab at the end, put this in your &#8220;Find what&#8221; box in Microsoft Word:</p>
<p><code>(^13*{12})</code></p>
<p>and put this in the &#8220;Replace With&#8221; box:</p>
<p><code>\1^t</code></p>
<p>and check the Use Wildcards option</p>
<p>The &#8220;^13&#8243; is a newline character (^p doesn&#8217;t work when using wildcards)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2009/08/find-and-replace-in-microsoft-word/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Find and Replace using regexp</title>
		<link>http://blog.arcster.com/2009/06/cool-find-and-replace-using-regexp/</link>
		<comments>http://blog.arcster.com/2009/06/cool-find-and-replace-using-regexp/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 15:21:37 +0000</pubDate>
		<dc:creator>arcster</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://arcster.com/blog/?p=116</guid>
		<description><![CDATA[So I saved an Excel file as a tab-separated text file. Then I wanted to add some html. The first column was all numbers followed by a tab and the second column. I opened the text file in Dreamweaver and &#8230; <a href="http://blog.arcster.com/2009/06/cool-find-and-replace-using-regexp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I saved an Excel file as a tab-separated text file. Then I wanted to add some html. The first column was all numbers followed by a tab and the second column.</p>
<p>I opened the text file in Dreamweaver and put the following in the &#8220;Find&#8221; box: \n([0-9]+)\t</p>
<p>That says &#8220;Look for a line break followed by a subexpression containing at least one numeric character followed by a tab&#8221;</p>
<p>I put the following in the Replace box: \n&lt;div class=&#8221;col1&#8243;&gt;$1&lt;/div&gt;&lt;div class=&#8221;col2&#8243;&gt;\t</p>
<p>That says &#8220;Replace it with a line break followed by a div tag followed by the subexpression (i.e, the number) followed by a closing div followed by an opening div for col2 followed by a tab&#8221;</p>
<p>Then the check the &#8220;Use regular expression&#8221; checkbox and hit &#8220;Replace All&#8221;</p>
<p>Quirky behavior noted: I couldn&#8217;t do one-at-a-time replacements. It only worked when I did Replace All. So make sure you have a back up handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arcster.com/2009/06/cool-find-and-replace-using-regexp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

