<?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 on: Using Java Regular Expressions In CFML</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2009/03/25/using-java-regular-expressions-in-cfml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2009/03/25/using-java-regular-expressions-in-cfml/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Carey</title>
		<link>https://www.barneyb.com/barneyblog/2009/03/25/using-java-regular-expressions-in-cfml/comment-page-1/#comment-242660</link>
		<dc:creator>Chris Carey</dc:creator>
		<pubDate>Fri, 11 Feb 2011 02:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=775#comment-242660</guid>
		<description>Hey I just stumbled across this and your experiment is *exactly* what I&#039;ve been wrestling with!

I&#039;m just trying to understand how you&#039;ve set this up with the prefix.  Are you just appending the prefix to the beginning of your subsequent regex? I can&#039;t make that work. With the prefix it doesn&#039;t replace anything. Without the prefix it replaces inside the tag attributes (which is what I&#039;m trying to avoid).

Here&#039;s my attempt:


			prefix = &quot;(?![^&lt;]*&lt;/(?i)(?:textarea&#124;script&#124;style)(?i)\W)(?&#124;^&#124;\\G)[^&lt;]*?)(?&lt;!&amp;(?:[a-zA-Z][a-zA-Z0-9]{0,25}&#124;##[0-9]{0,25}))&quot;;

			str = &quot;some html code&quot;;
			
			regex = &quot;e&quot;;
			replaceWith = &quot;3&quot;;
			
			result = str.replace(prefix &amp; regex, replaceWith);			
		
		

Any advice?</description>
		<content:encoded><![CDATA[<p>Hey I just stumbled across this and your experiment is *exactly* what I've been wrestling with!</p>
<p>I'm just trying to understand how you've set this up with the prefix.  Are you just appending the prefix to the beginning of your subsequent regex? I can't make that work. With the prefix it doesn't replace anything. Without the prefix it replaces inside the tag attributes (which is what I'm trying to avoid).</p>
<p>Here's my attempt:</p>
<p>			prefix = "(?![^&lt;]*&lt;/(?i)(?:textarea|script|style)(?i)\W)(?|^|\\G)[^&lt;]*?)(?&lt;!&amp;(?:[a-zA-Z][a-zA-Z0-9]{0,25}|##[0-9]{0,25}))&quot;;</p>
<p>			str = &quot;some html code";</p>
<p>			regex = "e";<br />
			replaceWith = "3&#8243;;</p>
<p>			result = str.replace(prefix &amp; regex, replaceWith);			</p>
<p>Any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Allen</title>
		<link>https://www.barneyb.com/barneyblog/2009/03/25/using-java-regular-expressions-in-cfml/comment-page-1/#comment-169239</link>
		<dc:creator>John Allen</dc:creator>
		<pubDate>Wed, 25 Mar 2009 23:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=775#comment-169239</guid>
		<description>That is very very very sharp.</description>
		<content:encoded><![CDATA[<p>That is very very very sharp.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
