<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments for Jake Churchill</title>
	<atom:link href="http://www.reynacho.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reynacho.com</link>
	<description>... on Flex, ColdFusion, FarCry, and much more ...</description>
	<pubDate>Tue, 09 Feb 2010 15:39:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on ColdFusion using Java for regex replace by Jake Churchill</title>
		<link>http://www.reynacho.com/2010/02/coldfusion-using-java-for-regex-replace/comment-page-1/#comment-11678</link>
		<dc:creator>Jake Churchill</dc:creator>
		<pubDate>Mon, 08 Feb 2010 21:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynacho.com/?p=251#comment-11678</guid>
		<description>Thanks for the comments.  The backreferencing is the exact reason I dropped back to Java for this.  I did not know to use a "\1" instead of a "$1".  </description>
		<content:encoded><![CDATA[<p>Thanks for the comments.  The backreferencing is the exact reason I dropped back to Java for this.  I did not know to use a &#8220;\1&#8243; instead of a &#8220;$1&#8243;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ColdFusion using Java for regex replace by Ben Nadel</title>
		<link>http://www.reynacho.com/2010/02/coldfusion-using-java-for-regex-replace/comment-page-1/#comment-11604</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynacho.com/?p=251#comment-11604</guid>
		<description>The Java regular expression engine (that you are accessing) is definitely awesome. It's faster and more robust that the one exposed by ColdFusion (POSIX). That said, ColdFusion's reReplace() should be able to handle this as well; you just have to be careful because the back-references use "\N" rather than "$N" notation.</description>
		<content:encoded><![CDATA[<p>The Java regular expression engine (that you are accessing) is definitely awesome. It&#8217;s faster and more robust that the one exposed by ColdFusion (POSIX). That said, ColdFusion&#8217;s reReplace() should be able to handle this as well; you just have to be careful because the back-references use &#8220;\N&#8221; rather than &#8220;$N&#8221; notation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ColdFusion using Java for regex replace by Peter Boughton</title>
		<link>http://www.reynacho.com/2010/02/coldfusion-using-java-for-regex-replace/comment-page-1/#comment-11585</link>
		<dc:creator>Peter Boughton</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynacho.com/?p=251#comment-11585</guid>
		<description>Hmmm. The tags have been broken in that post - I'll repost with them replaced by {braces}

---

I'm confused - you're not using anything Java regex here - you can do everything here with CF!

{cfset contentVariable = rereplace( contentVariable , 'src="(/.+?)"' , 'src="#domainName#\1"' ) /}


Though you could of course have used Java's lookbehind and possessive quantifiers, for something that is (potentially) very slightly better performance, like so:

{cfset contentVariable = contentVariable.replaceAll( '(?&lt;=src=")/[^"]++' , '#domainName#$0' )/}


But this is still using Regex to parse HTML, which has a number of pitfalls. The ideal method is using a DOM parser instead.

The ideal way is to use a DOM parser instead. (The best we've got for CF is XmlParse, which isn't great; there are Java DOM parsers which I keep meaning to check out but haven't got around to yet.)</description>
		<content:encoded><![CDATA[<p>Hmmm. The tags have been broken in that post - I&#8217;ll repost with them replaced by {braces}</p>
<p>&#8212;</p>
<p>I&#8217;m confused - you&#8217;re not using anything Java regex here - you can do everything here with CF!</p>
<p>{cfset contentVariable = rereplace( contentVariable , &#8217;src=&#8221;(/.+?)&#8221;&#8216; , &#8217;src=&#8221;#domainName#\1&#8243;&#8216; ) /}</p>
<p>Though you could of course have used Java&#8217;s lookbehind and possessive quantifiers, for something that is (potentially) very slightly better performance, like so:</p>
<p>{cfset contentVariable = contentVariable.replaceAll( &#8216;(?&lt;=src=&#8221;)/[^"]++&#8217; , &#8216;#domainName#$0&#8242; )/}</p>
<p>But this is still using Regex to parse HTML, which has a number of pitfalls. The ideal method is using a DOM parser instead.</p>
<p>The ideal way is to use a DOM parser instead. (The best we&#8217;ve got for CF is XmlParse, which isn&#8217;t great; there are Java DOM parsers which I keep meaning to check out but haven&#8217;t got around to yet.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ColdFusion using Java for regex replace by Peter Boughton</title>
		<link>http://www.reynacho.com/2010/02/coldfusion-using-java-for-regex-replace/comment-page-1/#comment-11584</link>
		<dc:creator>Peter Boughton</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynacho.com/?p=251#comment-11584</guid>
		<description>I'm confused - whilst its useful for people to know they can use Java String functions - you're not using anything that requires Java regex here - you can do everything you did with regular CF!




Here's an example that uses Java's lookbehind and possessive quantifiers, for something that is (potentially) very slightly better performance, like so:

&lt;cfset contentVariable = contentVariable.replaceAll( '(?


But this is still using Regex to parse HTML, which has a number of pitfalls. The ideal method is using a DOM parser instead.</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused - whilst its useful for people to know they can use Java String functions - you&#8217;re not using anything that requires Java regex here - you can do everything you did with regular CF!</p>
<p>Here&#8217;s an example that uses Java&#8217;s lookbehind and possessive quantifiers, for something that is (potentially) very slightly better performance, like so:</p>
<p>&lt;cfset contentVariable = contentVariable.replaceAll( &#8216;(?</p>
<p>But this is still using Regex to parse HTML, which has a number of pitfalls. The ideal method is using a DOM parser instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ColdFusion using Java for regex replace by Matthew</title>
		<link>http://www.reynacho.com/2010/02/coldfusion-using-java-for-regex-replace/comment-page-1/#comment-11583</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynacho.com/?p=251#comment-11583</guid>
		<description>I'll try again:

&gt;cfset contentVariable = ReReplace(contentVariable,'src="(\/.+?)\"', 'src="#domainName#\1"','all') /&lt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ll try again:</p>
<p>&gt;cfset contentVariable = ReReplace(contentVariable,&#8217;src=&#8221;(\/.+?)\&#8221;&#8216;, &#8217;src=&#8221;#domainName#\1&#8243;&#8216;,&#8217;all&#8217;) /&lt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ColdFusion using Java for regex replace by Matthew</title>
		<link>http://www.reynacho.com/2010/02/coldfusion-using-java-for-regex-replace/comment-page-1/#comment-11582</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynacho.com/?p=251#comment-11582</guid>
		<description>Hi Jake

Why not just use the ColdFusion ReReplace() function like below?



Cheers
Matthew</description>
		<content:encoded><![CDATA[<p>Hi Jake</p>
<p>Why not just use the ColdFusion ReReplace() function like below?</p>
<p>Cheers<br />
Matthew</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 200 by Jake Churchill</title>
		<link>http://www.reynacho.com/2009/02/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/comment-page-1/#comment-9544</link>
		<dc:creator>Jake Churchill</dc:creator>
		<pubDate>Fri, 30 Oct 2009 14:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://reynacho.com/?p=152#comment-9544</guid>
		<description>I was getting it every time when I had the issue.</description>
		<content:encoded><![CDATA[<p>I was getting it every time when I had the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 200 by Flex Guy</title>
		<link>http://www.reynacho.com/2009/02/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/comment-page-1/#comment-9542</link>
		<dc:creator>Flex Guy</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://reynacho.com/?p=152#comment-9542</guid>
		<description>Do you get this intermittently (the HTTP Failed:) or consistently everytime ?</description>
		<content:encoded><![CDATA[<p>Do you get this intermittently (the HTTP Failed:) or consistently everytime ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flex Custom Preloader without SWF by Dexter</title>
		<link>http://www.reynacho.com/2009/03/flex-custom-preloader-without-swf/comment-page-1/#comment-9432</link>
		<dc:creator>Dexter</dc:creator>
		<pubDate>Tue, 20 Oct 2009 09:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://jake.cfwebtools.com/?p=165#comment-9432</guid>
		<description>Thank you for sharing.. i have beel looking for this</description>
		<content:encoded><![CDATA[<p>Thank you for sharing.. i have beel looking for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IE menu hover fix by Pandora Beads</title>
		<link>http://www.reynacho.com/2009/03/ie-menu-hover-fix/comment-page-1/#comment-9381</link>
		<dc:creator>Pandora Beads</dc:creator>
		<pubDate>Tue, 13 Oct 2009 19:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://jake.cfwebtools.com/?p=161#comment-9381</guid>
		<description>Thanks for the tutorial.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
