<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[RegEx parsing]]></title><description><![CDATA[<p dir="auto">How do I parse numeric data with comma separator? Not that good with java regex, or regex in general.<br />
I was able to get the correct reading parsed (relative humitidy on a nearby weather station) as alphanumeric but I can't get the whole value. Values are in format "00,0".</p>
<p dir="auto">All numeric values in Mango have period, is it possible to change them to suit locale ie. comma?</p>
]]></description><link>https://forum.mango-os.com/topic/194/regex-parsing</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 15:07:57 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/194.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Sep 2009 19:16:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RegEx parsing on Wed, 30 Sep 2009 20:53:21 GMT]]></title><description><![CDATA[<p dir="auto">Sure, that works. :)</p>
]]></description><link>https://forum.mango-os.com/post/2715</link><guid isPermaLink="true">https://forum.mango-os.com/post/2715</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Wed, 30 Sep 2009 20:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx parsing on Wed, 30 Sep 2009 19:46:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlohbihler" aria-label="Profile: mlohbihler">@<bdi>mlohbihler</bdi></a> said:</p>
<blockquote>
<p dir="auto">That's actually not regex, it's a Java DecimalFormat. See <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html" rel="nofollow ugc">http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html</a>.</p>
<p dir="auto">Not that this will help, since for "12.3" a "##,#" returns 123 and "##.#" returns 12. The way to get the correct value is to parameterize the format with a locale, which Mango doesn't currently support.<br />
Well that kinda helps. If I can get 123 then I can have meta point to show the actual value..   :-)</p>
</blockquote>
]]></description><link>https://forum.mango-os.com/post/2714</link><guid isPermaLink="true">https://forum.mango-os.com/post/2714</guid><dc:creator><![CDATA[extin]]></dc:creator><pubDate>Wed, 30 Sep 2009 19:46:22 GMT</pubDate></item><item><title><![CDATA[Reply to RegEx parsing on Wed, 30 Sep 2009 19:31:42 GMT]]></title><description><![CDATA[<p dir="auto">That's actually not regex, it's a Java DecimalFormat. See <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html" rel="nofollow ugc">http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html</a>.</p>
<p dir="auto">Not that this will help, since for "12.3" a "##,#" returns 123 and "##.#" returns 12. The way to get the correct value is to parameterize the format with a locale, which Mango doesn't currently support.</p>
]]></description><link>https://forum.mango-os.com/post/2713</link><guid isPermaLink="true">https://forum.mango-os.com/post/2713</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Wed, 30 Sep 2009 19:31:42 GMT</pubDate></item></channel></rss>