<?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: how to remove all non digit characters from a string Java</title>
	<atom:link href="http://neozilon.com/java/how-to-remove-all-non-digit-characters-from-a-string-java/feed" rel="self" type="application/rss+xml" />
	<link>http://neozilon.com/java/how-to-remove-all-non-digit-characters-from-a-string-java</link>
	<description>Discussions, News, Tutorials, Comments about Java, Php, Javascript, Web, Mobile, Android , developer tools and programming languages</description>
	<lastBuildDate>Mon, 05 Sep 2011 19:00:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Killafo</title>
		<link>http://neozilon.com/java/how-to-remove-all-non-digit-characters-from-a-string-java/comment-page-1#comment-1266</link>
		<dc:creator>Killafo</dc:creator>
		<pubDate>Thu, 14 Apr 2011 10:37:38 +0000</pubDate>
		<guid isPermaLink="false">http://neozilon.com/?p=56#comment-1266</guid>
		<description>If you&#039;re using it to put in a DB you might want to do this after the regex:
//This will insure that you have a proper int
while(num .startsWith(&quot;0&quot;) &amp;&amp; num.length() &gt; 1){//loop through the string and make sure it doesn&#039;t start with a 0
				num = num .substring(1, num .length());
			}
//Then you can do.
Integer.valueOf(num);</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using it to put in a DB you might want to do this after the regex:<br />
//This will insure that you have a proper int<br />
while(num .startsWith(&#8220;0&#8243;) &amp;&amp; num.length() &gt; 1){//loop through the string and make sure it doesn&#8217;t start with a 0<br />
				num = num .substring(1, num .length());<br />
			}<br />
//Then you can do.<br />
Integer.valueOf(num);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry</title>
		<link>http://neozilon.com/java/how-to-remove-all-non-digit-characters-from-a-string-java/comment-page-1#comment-962</link>
		<dc:creator>Dmitry</dc:creator>
		<pubDate>Mon, 07 Feb 2011 11:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://neozilon.com/?p=56#comment-962</guid>
		<description>Thanks! it helped me very much! :)</description>
		<content:encoded><![CDATA[<p>Thanks! it helped me very much! <img src='http://neozilon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JeeBee</title>
		<link>http://neozilon.com/java/how-to-remove-all-non-digit-characters-from-a-string-java/comment-page-1#comment-128</link>
		<dc:creator>JeeBee</dc:creator>
		<pubDate>Mon, 16 Nov 2009 18:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://neozilon.com/?p=56#comment-128</guid>
		<description>or ...

String num = text.replaceAll(&quot;[^\\d]&quot;, &quot;&quot;);</description>
		<content:encoded><![CDATA[<p>or &#8230;</p>
<p>String num = text.replaceAll(&#8220;[^\\d]&#8220;, &#8220;&#8221;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

