<?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 use regex to get a specific decimal</title><link>https://community.appian.com/discussions/f/plug-ins/14721/how-use-regex-to-get-a-specific-decimal</link><description>Hi everyone! 
 Im trying to create a regular expression that give me true: 
 - Number (decimal) 
 - Only two decimals 
 - the 2 decimals are obligatory (Examples: 1,00 / 
 0,00 / 
 5,10 / 
 1357,78) 
 I created the follow validation &amp;quot; ^[0-9]+,?[0-9]+</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How use regex to get a specific decimal</title><link>https://community.appian.com/thread/65991?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2019 14:05:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56296b74-53e0-4061-84cf-6af65d8d48eb</guid><dc:creator>PhilB</dc:creator><description>&lt;p&gt;This should do what you want:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;^[0-9]+(\.|\,)[0-9]{2}$&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that a decimal separator of , or . is acceptable. You can test this out using regexr, a useful regex tool:&amp;nbsp;&lt;a href="https://regexr.com/4chm4"&gt;https://regexr.com/4chm4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>