<?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"
	>
<channel>
	<title>Comments on: Parse a string using JavaScript</title>
	<atom:link href="http://www.christopherjason.com/articles/parse-string-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christopherjason.com/javascript-programming/parse-string-javascript/</link>
	<description>web development, web design, technical communication information for novices and experts</description>
	<pubDate>Thu, 11 Mar 2010 16:23:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Christopher Jason</title>
		<link>http://www.christopherjason.com/javascript-programming/parse-string-javascript/#comment-39880</link>
		<dc:creator>Christopher Jason</dc:creator>
		<pubDate>Sun, 23 Sep 2007 04:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.christopherjason.com/articles/parse-a-string-using-javascript/#comment-39880</guid>
		<description>Haha thanks Norman for spotting another typo. In my example, I meant to set aPosition=text.indexOf("a"), not "cat" as I mistakenly typed. I've corrected the example. I really needs to stop writing these late at night.</description>
		<content:encoded><![CDATA[<p>Haha thanks Norman for spotting another typo. In my example, I meant to set aPosition=text.indexOf(&#8221;a&#8221;), not &#8220;cat&#8221; as I mistakenly typed. I&#8217;ve corrected the example. I really needs to stop writing these late at night.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norman</title>
		<link>http://www.christopherjason.com/javascript-programming/parse-string-javascript/#comment-39347</link>
		<dc:creator>Norman</dc:creator>
		<pubDate>Fri, 21 Sep 2007 14:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.christopherjason.com/articles/parse-a-string-using-javascript/#comment-39347</guid>
		<description>var text = "cat";
aPosition = text.indexOf("cat");

This actually returns a value of 0, because the variable text contains only a single string. If the variable text was an array...

var text=new Array();
text[text.length]="cat";

Then the variable text wouldd be "cat", but text.length would be 1.</description>
		<content:encoded><![CDATA[<p>var text = &#8220;cat&#8221;;<br />
aPosition = text.indexOf(&#8221;cat&#8221;);</p>
<p>This actually returns a value of 0, because the variable text contains only a single string. If the variable text was an array&#8230;</p>
<p>var text=new Array();<br />
text[text.length]=&#8221;cat&#8221;;</p>
<p>Then the variable text wouldd be &#8220;cat&#8221;, but text.length would be 1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Jason</title>
		<link>http://www.christopherjason.com/javascript-programming/parse-string-javascript/#comment-26177</link>
		<dc:creator>Christopher Jason</dc:creator>
		<pubDate>Wed, 11 Jul 2007 03:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.christopherjason.com/articles/parse-a-string-using-javascript/#comment-26177</guid>
		<description>Thanks Todd for catching the typo. I've corrected the article.</description>
		<content:encoded><![CDATA[<p>Thanks Todd for catching the typo. I&#8217;ve corrected the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://www.christopherjason.com/javascript-programming/parse-string-javascript/#comment-26102</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Tue, 10 Jul 2007 19:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.christopherjason.com/articles/parse-a-string-using-javascript/#comment-26102</guid>
		<description>JavaScript's indexOf method returns -1 if no match is found, not 0 like stated.  Just wanted to let you know since this was the top Google hit for my search.</description>
		<content:encoded><![CDATA[<p>JavaScript&#8217;s indexOf method returns -1 if no match is found, not 0 like stated.  Just wanted to let you know since this was the top Google hit for my search.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
