<?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: JavaScript Trim Optimizations</title>
	<atom:link href="http://ajaxian.com/archives/javascript-trim-optimizations/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/javascript-trim-optimizations</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: balupton</title>
		<link>http://ajaxian.com/archives/javascript-trim-optimizations/comment-page-1#comment-261108</link>
		<dc:creator>balupton</dc:creator>
		<pubDate>Mon, 04 Feb 2008 12:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/javascript-trim-optimizations#comment-261108</guid>
		<description>Ah ok. Cheers.</description>
		<content:encoded><![CDATA[<p>Ah ok. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spocke</title>
		<link>http://ajaxian.com/archives/javascript-trim-optimizations/comment-page-1#comment-261105</link>
		<dc:creator>Spocke</dc:creator>
		<pubDate>Mon, 04 Feb 2008 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/javascript-trim-optimizations#comment-261105</guid>
		<description>@balupton: The first one trims both left and right the second one only trims right.</description>
		<content:encoded><![CDATA[<p>@balupton: The first one trims both left and right the second one only trims right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: balupton</title>
		<link>http://ajaxian.com/archives/javascript-trim-optimizations/comment-page-1#comment-261103</link>
		<dc:creator>balupton</dc:creator>
		<pubDate>Mon, 04 Feb 2008 11:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/javascript-trim-optimizations#comment-261103</guid>
		<description>Also I guess that g modifier in my above piece of code isn&#039;t needed as well...</description>
		<content:encoded><![CDATA[<p>Also I guess that g modifier in my above piece of code isn&#8217;t needed as well&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: balupton</title>
		<link>http://ajaxian.com/archives/javascript-trim-optimizations/comment-page-1#comment-261102</link>
		<dc:creator>balupton</dc:creator>
		<pubDate>Mon, 04 Feb 2008 11:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/javascript-trim-optimizations#comment-261102</guid>
		<description>Why is 4 repeating itself?
[code]return str.replace(/^\s+&#124;\s+$/g, &#039;&#039;);[/code]

And I tested the following unincluded test case:
[code]return str.replace(/\s+$/g, &#039;&#039;);[/code]
It proved to be just as quick as the recommended lengthy alternatives in this post (1ms). Am I missing something?</description>
		<content:encoded><![CDATA[<p>Why is 4 repeating itself?<br />
[code]return str.replace(/^\s+|\s+$/g, '');[/code]</p>
<p>And I tested the following unincluded test case:<br />
[code]return str.replace(/\s+$/g, '');[/code]<br />
It proved to be just as quick as the recommended lengthy alternatives in this post (1ms). Am I missing something?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

