<?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: ABAP REGEX Question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999547#M1804449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="str"&gt;DE.*?DE does not work in ABAP because non-greedy regex syntax is not yet implemented.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="str"&gt;It is reserved for future enhancements.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, i am assuming the string starts with DE. Second DE occurrence can be found using sample below, which is then replaced with nothing.&lt;/P&gt;&lt;DIV style="background-color: #e7e5dc; width: auto; overflow: auto; margin: 1em 0 !important; padding-top: 1px; font-family: courier new,courier;"&gt;&lt;OL start="1" style="list-style: decimal; background-color: #fff; margin: 0 0 1px 3.5em !important; padding: 0; color: #5c5c5c;"&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA &lt;/SPAN&gt;lv_input &lt;SPAN style="color: #0000ff;"&gt;TYPE &lt;/SPAN&gt;string&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'DE11111X1111DE222222222222222ZPDE33333333333333DE44444444444'.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA &lt;/SPAN&gt;lv_output &lt;SPAN style="color: #0000ff;"&gt;TYPE &lt;/SPAN&gt;string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;lv_output &lt;SPAN style="color: #800080;"&gt;= &lt;/SPAN&gt;lv_input.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;REPLACE &lt;/SPAN&gt;REGEX &lt;SPAN style="color: #4da619;"&gt;'(.)DE.*' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IN &lt;/SPAN&gt;lv_output &lt;SPAN style="color: #0000ff;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'$1'.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WRITE:&lt;/SPAN&gt;/ lv_output.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 12:51:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-28T12:51:51Z</dc:date>
    <item>
      <title>ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999542#M1804444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a string like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;mystring &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;string &lt;SPAN class="L0S52"&gt;value &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DE11111X1111DE222222222222222ZPDE33333333333333DE44444444444'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;How can I find the string from the first &amp;lt;DE&amp;gt; to the second &amp;lt;DE&amp;gt;&amp;nbsp; (= &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN class="L0S33"&gt;DE11111X1111&lt;/SPAN&gt;&lt;/SPAN&gt;) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;I tried &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;mystring &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;string &lt;SPAN class="L0S52"&gt;value &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DE1111X11111DE222222222222222ZPDE33333333333333DE44444444444'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;moff &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mlen &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'DE.*DE' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;mystring&amp;nbsp; MATCH &lt;SPAN class="L0S52"&gt;COUNT &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tabix&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATCH OFFSET moff&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATCH LENGTH mlen&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;SPAN class="L0S52"&gt;write&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;/ mystring+moff&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;mlen&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DE1111X11111DE222222222222222ZPDE33333333333333DE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999542#M1804444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T11:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999543#M1804445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it : &lt;CODE&gt;&lt;SPAN class="str"&gt;DE.*?DE&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999543#M1804445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T11:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999544#M1804446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="str"&gt;DE.*?DE&amp;nbsp; dows not work in ABAP&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="str"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="str"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999544#M1804446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999545#M1804447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\DE Regex will provide you the postion of DE and then you can derive accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999545#M1804447</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-01-28T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999546#M1804448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nabheet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry. I don't understand.&lt;/P&gt;&lt;P&gt;When I try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIND REGEX &lt;SPAN class="L0S33"&gt;'\DE' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;mystring&amp;nbsp; MATCH &lt;SPAN class="L0S52"&gt;COUNT &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;tabix&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATCH OFFSET moff&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MATCH LENGTH mlen&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;offset = 0,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;length = 2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999546#M1804448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T12:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999547#M1804449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="str"&gt;DE.*?DE does not work in ABAP because non-greedy regex syntax is not yet implemented.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="str"&gt;It is reserved for future enhancements.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, i am assuming the string starts with DE. Second DE occurrence can be found using sample below, which is then replaced with nothing.&lt;/P&gt;&lt;DIV style="background-color: #e7e5dc; width: auto; overflow: auto; margin: 1em 0 !important; padding-top: 1px; font-family: courier new,courier;"&gt;&lt;OL start="1" style="list-style: decimal; background-color: #fff; margin: 0 0 1px 3.5em !important; padding: 0; color: #5c5c5c;"&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA &lt;/SPAN&gt;lv_input &lt;SPAN style="color: #0000ff;"&gt;TYPE &lt;/SPAN&gt;string&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'DE11111X1111DE222222222222222ZPDE33333333333333DE44444444444'.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA &lt;/SPAN&gt;lv_output &lt;SPAN style="color: #0000ff;"&gt;TYPE &lt;/SPAN&gt;string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;lv_output &lt;SPAN style="color: #800080;"&gt;= &lt;/SPAN&gt;lv_input.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;REPLACE &lt;/SPAN&gt;REGEX &lt;SPAN style="color: #4da619;"&gt;'(.)DE.*' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IN &lt;/SPAN&gt;lv_output &lt;SPAN style="color: #0000ff;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'$1'.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WRITE:&lt;/SPAN&gt;/ lv_output.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999547#M1804449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP REGEX Question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999548#M1804450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it that way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA lv_input &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'xDE11111X1111DE222222222222222ZPDE33333333333333DE44444444444'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lv_output &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lv_output &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_input&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;/ lv_input&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;while &lt;/SPAN&gt;lv_output &lt;SPAN class="L0S52"&gt;cs &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DE'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;REPLACE &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'(.)DE.*' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_output &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'$1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;/ lv_output&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;REPLACE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF&amp;nbsp; &lt;/SPAN&gt;lv_output &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_input&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;''&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_output &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_input&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endwhile&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Mario&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-question/m-p/9999548#M1804450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-28T13:07:19Z</dc:date>
    </item>
  </channel>
</rss>

