<?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 remove leading zero from a string</title><link>https://community.appian.com/discussions/f/rules/20841/how-to-remove-leading-zero-from-a-string</link><description>Hi there, 
 kind new to Appian, just want to know how to remove the leading zero from a string in Expression rule. 
 thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to remove leading zero from a string</title><link>https://community.appian.com/thread/81223?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 17:18:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:868e3016-57f0-4afc-8c5b-f3e264d84acd</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Also, in case anyone is looking for an OOTB solution here - the fixed() function will do this easily for you.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;tointeger(
  fixed(00002803,0)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to remove leading zero from a string</title><link>https://community.appian.com/thread/81214?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 15:41:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:322ebbf4-066e-4b43-9e1c-4fa06d1df2eb</guid><dc:creator>linp0001</dc:creator><description>&lt;p&gt;It&amp;#39;s working! Thank you very much for the help.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to remove leading zero from a string</title><link>https://community.appian.com/thread/81189?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 05:57:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84eb78a1-1702-402d-836d-e34a7bc8cd0b</guid><dc:creator>baratc</dc:creator><description>&lt;p&gt;Hi Lin,&lt;/p&gt;
&lt;p&gt;Please try this plugin -&lt;span&gt;regexreplaceall . Thus will help you for this specific case and also many other use cases related to formatting&amp;nbsp;text&amp;nbsp;using regex. Refer the link for downloading the plugin.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regexreplaceall(&amp;quot;^0+&amp;quot;,&amp;quot;0000100&amp;quot;,&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;a href="/b/appmarket/posts/regular-expression-functions"&gt;https://community.appian.com/b/appmarket/posts/regular-expression-functions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;hope this helps. Have&amp;nbsp; a good Day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to remove leading zero from a string</title><link>https://community.appian.com/thread/81186?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 04:55:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62247b75-973e-4e5e-8628-9b58c57134ad</guid><dc:creator>linp0001</dc:creator><description>&lt;p&gt;thanks for the information, the problem is that the number of leading 0 is variant. so it probably will not work.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to remove leading zero from a string</title><link>https://community.appian.com/thread/81184?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 03:02:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff28b68f-a624-45c3-b82d-f4cff000734c</guid><dc:creator>Aditya Padyal</dc:creator><description>&lt;p&gt;linp0001 please try this may be solve your problem.&lt;/p&gt;
&lt;p&gt;1)Syntax : --&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;text&lt;/strong&gt;(&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;value&lt;/em&gt;,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;format&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;2) Syntax : --&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;split&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;text&lt;/em&gt;,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;separator&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1619493427984v2.png" /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1619496073469v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For more details please refer this documentation --&amp;gt;&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.1/fnc_text_text.html"&gt;text() Function - Appian 21.1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;split function --&amp;gt;&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.1/fnc_text_split.html"&gt;split() Function - Appian 21.1&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>