<?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: Flex doesn&#8217;t have a String#replaceAll()?</title>
	<atom:link href="http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/feed/" rel="self" type="application/rss+xml" />
	<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/</link>
	<description>Technologist, Consultant, Software Engineer, Entrepreneur and Musician</description>
	<lastBuildDate>Mon, 30 Aug 2010 16:04:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: coder</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3949</link>
		<dc:creator>coder</dc:creator>
		<pubDate>Thu, 05 Aug 2010 11:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3949</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aruna</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3918</link>
		<dc:creator>Aruna</dc:creator>
		<pubDate>Sat, 12 Jun 2010 07:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3918</guid>
		<description>Really nice!!</description>
		<content:encoded><![CDATA[<p>Really nice!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kishore</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3900</link>
		<dc:creator>Kishore</dc:creator>
		<pubDate>Fri, 23 Apr 2010 14:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3900</guid>
		<description>Wonderful</description>
		<content:encoded><![CDATA[<p>Wonderful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3868</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sun, 28 Mar 2010 15:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3868</guid>
		<description>All I want is to replace all occurences of the letter &quot;A&quot; in a string. And I just can&#039;t figure it out. 
Regex makes my head spin and I don&#039;t even know where to begin bashing that as a solution. It just doesn&#039;t work, no clue why. 

Colin is right to find it absurd that there is no standard &quot;replace all&quot; function.</description>
		<content:encoded><![CDATA[<p>All I want is to replace all occurences of the letter &#8220;A&#8221; in a string. And I just can&#8217;t figure it out.<br />
Regex makes my head spin and I don&#8217;t even know where to begin bashing that as a solution. It just doesn&#8217;t work, no clue why. </p>
<p>Colin is right to find it absurd that there is no standard &#8220;replace all&#8221; function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garry</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3862</link>
		<dc:creator>Garry</dc:creator>
		<pubDate>Mon, 15 Mar 2010 10:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3862</guid>
		<description>I think the point the guy was making is that it would be nice if flex provided an alternative method to regular expressions which not everybody enjoys using, as most other languages do. You don&#039;t have to jump down his throat because you disagree with that point of view.</description>
		<content:encoded><![CDATA[<p>I think the point the guy was making is that it would be nice if flex provided an alternative method to regular expressions which not everybody enjoys using, as most other languages do. You don&#8217;t have to jump down his throat because you disagree with that point of view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3855</link>
		<dc:creator>Kelvin</dc:creator>
		<pubDate>Thu, 25 Feb 2010 21:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3855</guid>
		<description>Flex sucks!!!</description>
		<content:encoded><![CDATA[<p>Flex sucks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lala</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3833</link>
		<dc:creator>Lala</dc:creator>
		<pubDate>Wed, 06 Jan 2010 11:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3833</guid>
		<description>thanks man. helped me!</description>
		<content:encoded><![CDATA[<p>thanks man. helped me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewis</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3819</link>
		<dc:creator>Lewis</dc:creator>
		<pubDate>Mon, 07 Dec 2009 20:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3819</guid>
		<description>How do I do a global replace when the regexp is unknown until runtime? ie

s = s.replace(&quot;\$\{&quot; + name + &quot;\}&quot;,value)</description>
		<content:encoded><![CDATA[<p>How do I do a global replace when the regexp is unknown until runtime? ie</p>
<p>s = s.replace(&#8220;\$\{&#8221; + name + &#8220;\}&#8221;,value)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3732</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 11 Jun 2009 03:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3732</guid>
		<description>@Chris,

Its plain and obvious in the docs (as of Flex 3.3/), I must have been looking at the 3.0 documents last June and July(http://en.wikipedia.org/wiki/Adobe_Flex#Release_history).

It is definitely a one-liner to use a global regex, but its not intuitively obvious especially coming from other frameworks

http://livedocs.adobe.com/flex/3/langref/String.html#replace()

I still would contend that on a class as crucial as String, it should have a replaceAll(x,y) using str.replace(/test/g, “WOW”); can get the Job done, but I think we can still do better.</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>Its plain and obvious in the docs (as of Flex 3.3/), I must have been looking at the 3.0 documents last June and July(http://en.wikipedia.org/wiki/Adobe_Flex#Release_history).</p>
<p>It is definitely a one-liner to use a global regex, but its not intuitively obvious especially coming from other frameworks</p>
<p><a href="http://livedocs.adobe.com/flex/3/langref/String.html#replace()" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/String.html#replace()</a></p>
<p>I still would contend that on a class as crucial as String, it should have a replaceAll(x,y) using str.replace(/test/g, “WOW”); can get the Job done, but I think we can still do better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://colinharrington.net/blog/2008/07/flex-doesnt-have-a-stringreplaceall/comment-page-1/#comment-3731</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 10 Jun 2009 20:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://colinharrington.net/blog/index.php/2008/07/15/flex-doesnt-have-a-stringreplaceall/#comment-3731</guid>
		<description>And why don&#039;t you just use the String.replace method correctly?

str:String = &quot;test xxx &quot;test&quot; yyy&quot;;
str.replace(/test/g, &quot;WOW&quot;);

// str is now &quot;WOW xxx &quot;WOW&quot; yyy&quot;

Before you are shocked the next time and blame the framework learn how to use it correctly.
People here will read your post and then think bad about the flex framework. But the truth is, that is has a very powerfull replace method.</description>
		<content:encoded><![CDATA[<p>And why don&#8217;t you just use the String.replace method correctly?</p>
<p>str:String = &#8220;test xxx &#8220;test&#8221; yyy&#8221;;<br />
str.replace(/test/g, &#8220;WOW&#8221;);</p>
<p>// str is now &#8220;WOW xxx &#8220;WOW&#8221; yyy&#8221;</p>
<p>Before you are shocked the next time and blame the framework learn how to use it correctly.<br />
People here will read your post and then think bad about the flex framework. But the truth is, that is has a very powerfull replace method.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
