<?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>Ajax Plus - Tips and tutorial for Ajax &#187; Javascript string</title>
	<atom:link href="http://www.ajaxplus.net/tag/javascript-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxplus.net</link>
	<description>All you need to know about Ajax</description>
	<lastBuildDate>Wed, 03 Feb 2010 12:17:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript split numbers from string</title>
		<link>http://www.ajaxplus.net/2010/02/01/javascript-split-numbers-from-string/</link>
		<comments>http://www.ajaxplus.net/2010/02/01/javascript-split-numbers-from-string/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 13:51:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Javascript string]]></category>

		<guid isPermaLink="false">http://www.ajaxplus.net/2010/02/01/javascript-split-numbers-from-string/</guid>
		<description><![CDATA[  Hi,
From time to time you have a string that contains numbers and letters and you need to split them.
This is very easy to do using Javascript.
Lets say you have this  string:
var string  = &#8220;due_date47&#8243;;
to create to vars that one will have &#8220;due_date&#8221; as value and the other &#8220;47&#8243; do this:
&#60;script type="text/javascript"&#62;var field = "due_date37";

var [...] ]]></description>
			<content:encoded><![CDATA[<p> Hi,</p>
<p>From time to time you have a string that contains numbers and letters and you need to split them.</p>
<p>This is very easy to do using Javascript.</p>
<p>Lets say you have this  string:</p>
<p>var string  = &#8220;due_date47&#8243;;</p>
<p>to create to vars that one will have &#8220;due_date&#8221; as value and the other &#8220;47&#8243; do this:</p>
<pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 98px; text-align: left">&lt;script type="text/javascript"&gt;var field = "due_date37";

var number=field.match(/\d/g).join('');

var nonnumber=field.match(/[^\d]/g).join('');

&lt;/script&gt;</pre>
<p>Easy! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxplus.net/2010/02/01/javascript-split-numbers-from-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
