<?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: Remove element from Array</title>
	<atom:link href="http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/feed" rel="self" type="application/rss+xml" />
	<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array</link>
	<description>all the other blogs have such cool names, I don't know one ...</description>
	<pubDate>Thu, 09 Feb 2012 17:06:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Graig Ebersold</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-450621</link>
		<dc:creator>Graig Ebersold</dc:creator>
		<pubDate>Mon, 16 Jan 2012 23:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-450621</guid>
		<description>Hey! Someone in my Myspace group shared this site with us so I came to look it over. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers! Fantastic blog and outstanding style and design.</description>
		<content:encoded><![CDATA[<p>Hey! Someone in my Myspace group shared this site with us so I came to look it over. I&#8217;m definitely enjoying the information. I&#8217;m bookmarking and will be tweeting this to my followers! Fantastic blog and outstanding style and design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thnks</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-450246</link>
		<dc:creator>Thnks</dc:creator>
		<pubDate>Fri, 13 Jan 2012 09:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-450246</guid>
		<description>Thnks so much!!</description>
		<content:encoded><![CDATA[<p>Thnks so much!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bderooms</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-450174</link>
		<dc:creator>bderooms</dc:creator>
		<pubDate>Fri, 13 Jan 2012 00:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-450174</guid>
		<description>!! don't use it is quite a strong statement.

Personally I don't like splice since it has side effects.
Better is to check for empty elements and put your next element on the empty spot to fill up the holes. For example I have a map in which I want to remove some elements... Or I loop over the arrya to remove some elements..
Auch... it'll crash since ur adapting ur arraywhile ur running over it and
will probably get out of memory.</description>
		<content:encoded><![CDATA[<p>!! don&#8217;t use it is quite a strong statement.</p>
<p>Personally I don&#8217;t like splice since it has side effects.<br />
Better is to check for empty elements and put your next element on the empty spot to fill up the holes. For example I have a map in which I want to remove some elements&#8230; Or I loop over the arrya to remove some elements..<br />
Auch&#8230; it&#8217;ll crash since ur adapting ur arraywhile ur running over it and<br />
will probably get out of memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Dawkins Authentic Jersey</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-450101</link>
		<dc:creator>Brian Dawkins Authentic Jersey</dc:creator>
		<pubDate>Thu, 12 Jan 2012 07:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-450101</guid>
		<description>Hey, I had been looking on this subject for a extended although but I was not in a position to discover wonderful resources like that. Now I feel quite confidence by your suggestions about that, I feel you might have choosen a terrific approach to write some info on this topic.</description>
		<content:encoded><![CDATA[<p>Hey, I had been looking on this subject for a extended although but I was not in a position to discover wonderful resources like that. Now I feel quite confidence by your suggestions about that, I feel you might have choosen a terrific approach to write some info on this topic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodolfo Jorge Nemer Nogueira</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-448719</link>
		<dc:creator>Rodolfo Jorge Nemer Nogueira</dc:creator>
		<pubDate>Thu, 29 Dec 2011 13:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-448719</guid>
		<description>Thx you my friend. You saved my day.

Rodolfo Nogueira
UFPR Música - Curitiba Paraná</description>
		<content:encoded><![CDATA[<p>Thx you my friend. You saved my day.</p>
<p>Rodolfo Nogueira<br />
UFPR Música - Curitiba Paraná</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: discount bedroom furniture</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-447079</link>
		<dc:creator>discount bedroom furniture</dc:creator>
		<pubDate>Sat, 10 Dec 2011 22:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-447079</guid>
		<description>I like the valuable information you provide in your articles. I’ll bookmark your weblog and check again here frequently. I am quite certain I will learn plenty of new stuff right here! Best of luck for the next!</description>
		<content:encoded><![CDATA[<p>I like the valuable information you provide in your articles. I’ll bookmark your weblog and check again here frequently. I am quite certain I will learn plenty of new stuff right here! Best of luck for the next!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wolfram</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-443150</link>
		<dc:creator>Wolfram</dc:creator>
		<pubDate>Wed, 02 Nov 2011 13:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-443150</guid>
		<description>very welcome</description>
		<content:encoded><![CDATA[<p>very welcome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geert</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-443146</link>
		<dc:creator>Geert</dc:creator>
		<pubDate>Wed, 02 Nov 2011 12:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-443146</guid>
		<description>Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: greenfir3</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-430497</link>
		<dc:creator>greenfir3</dc:creator>
		<pubDate>Sat, 18 Jun 2011 03:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-430497</guid>
		<description>@krritter
This is how you can remove any element with CE anywhere in it.
It is likely I have the Regular Expression incorrect, I'm no expert on it.
// Create an array of test strings
var myArray = ("none,CE,test CE,CECE,ABCDE,ABCED").split(",");

// Create Regular Expression Pattern
var pattern = /(?:CE)+/;

console.log(myArray);
// Output: [none,CE,test CE,CECE,ABCDE,ABCED]

// This is the important bit
for (var i = 0; i &lt; myArray.length;) {
	if (pattern.test(myArray[i])) {
		myArray.splice(i, 1);
	} else {
		i += 1;
	}
}
console.log(myArray);
// Output: [none,ABCDE]</description>
		<content:encoded><![CDATA[<p>@krritter<br />
This is how you can remove any element with CE anywhere in it.<br />
It is likely I have the Regular Expression incorrect, I&#8217;m no expert on it.<br />
// Create an array of test strings<br />
var myArray = (&#8221;none,CE,test CE,CECE,ABCDE,ABCED&#8221;).split(&#8221;,&#8221;);</p>
<p>// Create Regular Expression Pattern<br />
var pattern = /(?:CE)+/;</p>
<p>console.log(myArray);<br />
// Output: [none,CE,test CE,CECE,ABCDE,ABCED]</p>
<p>// This is the important bit<br />
for (var i = 0; i &lt; myArray.length;) {<br />
	if (pattern.test(myArray[i])) {<br />
		myArray.splice(i, 1);<br />
	} else {<br />
		i += 1;<br />
	}<br />
}<br />
console.log(myArray);<br />
// Output: [none,ABCDE]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krritter</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-1#comment-430348</link>
		<dc:creator>krritter</dc:creator>
		<pubDate>Thu, 16 Jun 2011 15:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/?p=227#comment-430348</guid>
		<description>what if I want to remove (with no spaces left) every element in my array that includes the letters "CE" anywhere in the element?</description>
		<content:encoded><![CDATA[<p>what if I want to remove (with no spaces left) every element in my array that includes the letters &#8220;CE&#8221; anywhere in the element?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

