<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'check if a string is a number'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 01:16:18 GMT</pubDate>
<item>
<title>tonicharlot said on 8/14/08</title>
<link>http://snipplr.com/view/2701/check-if-a-string-is-a-number/</link>
<description><![CDATA[ Regex would probably be a better option here:

`return yourString!=null &amp;&amp; yourString.matches("\d{1-5}");`

The above would return true for an input between 0 and 65535.  Of course the regex used
can be more realistic to take formatting and decimals into consideration. ]]></description>
<pubDate>Thu, 14 Aug 2008 02:59:20 GMT</pubDate>
<guid>http://snipplr.com/view/2701/check-if-a-string-is-a-number/</guid>
</item>
</channel>
</rss>