<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to clean a text to return only the numeric part?</title><link>https://community.appian.com/discussions/f/user-interface/18796/how-to-clean-a-text-to-return-only-the-numeric-part</link><description>Hi, 
 I am trying to strip out characters that are non-numerical from an input field. For that I am trying to create a rule that I want to use in a textfield in the interface. Does anyone know how to do it? 
 Here is what I have that is not working so</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/145490?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 11:59:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dce61974-a6dd-47e4-8b48-d4b0bf6337b2</guid><dc:creator>ak0642</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1740052732595v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried this, but in result i am getting -ve sign. I just need positive number&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/73910?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 22:01:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae664ab6-f026-4048-810a-ccf5f2a00b80</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Cool, glad to help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/73909?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 22:01:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b985a379-6cbc-4656-9f83-5cf61b74b0a9</guid><dc:creator>robertab0001</dc:creator><description>&lt;p&gt;Actually, i take that back! It worked. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/73908?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 21:59:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:787e14fd-3232-4966-bcee-1bf9fa50c5e7</guid><dc:creator>robertab0001</dc:creator><description>&lt;p&gt;It didn&amp;#39;t work for me. :-|&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/73905?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 21:19:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c24cb28-8da4-4bc5-95e3-9adb81aff071</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;tointeger() returns only numeric data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/73904?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 21:16:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:397db5a0-222a-4de5-8c4c-03f45dc61fb3</guid><dc:creator>robertab0001</dc:creator><description>&lt;p&gt;Thank you, Mike. How do you make sure the text does not contain special characters, alpha characters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to clean a text to return only the numeric part?</title><link>https://community.appian.com/thread/73903?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 21:00:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e52f6971-4ba8-4b68-8d29-92002a45c1ac</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Usually when I have to do something like this, unless the requirements are somewhat more involved, I simply pass the value through toInteger().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>