<?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>Spoonfed Project &#187; dreamweaver</title>
	<atom:link href="http://spoonfedproject.com/tag/dreamweaver/feed/" rel="self" type="application/rss+xml" />
	<link>http://spoonfedproject.com</link>
	<description>Feeding developers quality resources from across the web</description>
	<lastBuildDate>Sun, 03 Apr 2011 12:34:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using Regular Expressions with Dreamweaver&#8217;s Find and Replace</title>
		<link>http://spoonfedproject.com/html/using-regular-expressions-with-dreamweavers-find-and-replace/</link>
		<comments>http://spoonfedproject.com/html/using-regular-expressions-with-dreamweavers-find-and-replace/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 00:39:33 +0000</pubDate>
		<dc:creator>brobison</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://spoonfedproject.com/?p=204</guid>
		<description><![CDATA[Having had the pleasureable task of cleaning up code, I&#8217;ve found using regular expressions with Dreamweaver&#8217;s Find and Replace tool to be a lifesaver. Say you have several links on a page that need to be updated so they all point to the same url. Instead of manually changing every link, we&#8217;ll let Dreamweaver&#8217;s Find ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://spoonfedproject.com/html/using-regular-expressions-with-dreamweavers-find-and-replace/" title="Using Regular Expressions with Dreamweaver's Find and Replace"><img src="http://spoonfedproject.com/wp-content/uploads/2009/09/regular-expressions.png" alt="Using Regular Expressions with Dreamweaver's Find and Replace" /></a></p>
<p>Having had the pleasureable task of cleaning up code, I&#8217;ve found using regular expressions with Dreamweaver&#8217;s Find and Replace tool to be a lifesaver.</p>
<p>Say you have several links on a page that need to be updated so they all point to the same url. Instead of manually changing every link, we&#8217;ll let Dreamweaver&#8217;s Find and Replace tool and regular expressions automate this for us.</p>
<p><span id="more-204"></span></p>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_0817090731.swf' /><param name='flashvars' value='i=11726' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_0817090731.swf' flashvars='i=11726' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></p>
<p><em>The magic behind this is using our little expression: [^"]*</em></p>
<p>Here&#8217;s a breakdown of what these characters are doing.</p>
<ul>
<li>^ Match any character starting from this point</li>
<li>&#8221; Stop once you&#8217;ve reached a quote</li>
<li>* Match the preceding character zero or more times</li>
</ul>
<p>Basically, this means we want to find whatever information is between the two quotes and replace it.</p>
<p>Regular expressions are a very valuable tool. The expression above is only one way in which they can be used. For an in depth tutorial, checkout <a href="http://blog.themeforest.net/screencasts/regular-expressions-for-dummies/" title="ThemeForest's - Regular Expressions for Dummies">ThemeForest&#8217;s &#8211; Regular Expressions for Dummies</a>.</p>
<p>Just a word of caution&#8230; please be sure to make a backup copy first. If you ever need to refer back to the original, or if you accidently replaced code that you shouldn&#8217;t have, you&#8217;ll thank yourself later.</p>
]]></content:encoded>
			<wfw:commentRss>http://spoonfedproject.com/html/using-regular-expressions-with-dreamweavers-find-and-replace/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

