<?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>Hank Beaver &#187; find replace</title>
	<atom:link href="http://www.hankbeaver.com/index.php/tag/find-replace/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hankbeaver.com</link>
	<description>Open-source, Internet technologist who works for MaxMedia located in Atlanta, GA, USA</description>
	<lastBuildDate>Tue, 09 Aug 2011 18:20:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Don&#8217;t for the &#8216;g&#8217; when doing regex replace in Javascript!</title>
		<link>http://www.hankbeaver.com/index.php/2009/01/12/dont-for-the-g-when-doing-regex-replace-in-javascript/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/01/12/dont-for-the-g-when-doing-regex-replace-in-javascript/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 18:59:53 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[find replace]]></category>
		<category><![CDATA[globally]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=75</guid>
		<description><![CDATA[When needing to perform a String.replace() with some regex and globally replace text. You must remember to put the &#8220;g&#8221; argument like so:
var str = &#8220;&#8216;http://www.com/123/123&#8242;&#8221;
str.replace(/&#8217;/g,&#8221;")
Spent a few minutes banging my head on this one.  So remember the &#8220;g&#8221;!
]]></description>
			<content:encoded><![CDATA[<p>When needing to perform a String.replace() with some regex and globally replace text. You must remember to put the &#8220;g&#8221; argument like so:</p>
<p>var str = &#8220;&#8216;http://www.com/123/123&#8242;&#8221;</p>
<p>str.replace(/&#8217;/g,&#8221;")</p>
<p>Spent a few minutes banging my head on this one.  So remember the &#8220;g&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/01/12/dont-for-the-g-when-doing-regex-replace-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

