<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regular expression in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression/m-p/7847987#M1591682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using a Regex for this? If you want a fixed number of decimal places inside an XML file, then in ABAP I think you need to use a character type field and e.g. fill it using with WRITE ... TO ... DECIMALS ... statement.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 15:17:46 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2011-04-28T15:17:46Z</dc:date>
    <item>
      <title>Regular expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression/m-p/7847986#M1591681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colleagues,&lt;/P&gt;&lt;P&gt;My requirement is every amount field should display two decimal places.&lt;/P&gt;&lt;P&gt;I have an XML file and I have to parse through every tag and do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;'&amp;lt;ABB&amp;gt;100.0&amp;lt;/ABB&amp;gt;'        shud become '&amp;lt;ABB&amp;gt;100.000&amp;lt;/ABB&amp;gt;'   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using the below :&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF REGEX '&amp;lt;ABB&amp;gt;(-?\d+)&amp;lt;/ABB&amp;gt;'         IN lv_result_file_temp&lt;/P&gt;&lt;P&gt;  WITH '&amp;lt;ABB&amp;gt;$1.000&amp;lt;/ABB&amp;gt;' IGNORING CASE.        "#EC STRING_OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the above REGEX doesn't work. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 10:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression/m-p/7847986#M1591681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-28T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression/m-p/7847987#M1591682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using a Regex for this? If you want a fixed number of decimal places inside an XML file, then in ABAP I think you need to use a character type field and e.g. fill it using with WRITE ... TO ... DECIMALS ... statement.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression/m-p/7847987#M1591682</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-04-28T15:17:46Z</dc:date>
    </item>
  </channel>
</rss>

