<?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 patterns in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522303#M1749593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct program would be &lt;STRONG&gt;DEMO_&lt;/STRONG&gt;REGEX_TOY &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 20:04:40 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2013-06-06T20:04:40Z</dc:date>
    <item>
      <title>Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522296#M1749586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write patterns for the below examples. Can someone help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to search for regular expression for..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZI_SD_yyyy_TOP&lt;/P&gt;&lt;P&gt;(The question is in the above word how can I make sure that the last of the word is 'TOP'. There should not be any more letter after TOP.&lt;/P&gt;&lt;P&gt;ZI_FI_DOCPOST_F01&lt;/P&gt;&lt;P&gt;(In the above one I need to find that the last three letters should be any alphabet followed by two numbers and there should not be any more characters after F01&lt;/P&gt;&lt;P&gt;&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, 06 Jun 2013 13:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522296#M1749586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-06T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522297#M1749587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this snippet.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;IF &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'ZI_SD_yyyy_TOP' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CP &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'ZI_SD*TOP'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;:&lt;/SPAN&gt;/ &lt;SPAN style="color: #4da619;"&gt;'found'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;IF &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'ZI_FI_DOCPOST_F01' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CP &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'ZI_FI*F01'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;:&lt;/SPAN&gt;/ &lt;SPAN style="color: #4da619;"&gt;'found'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522297#M1749587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-06T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522298#M1749588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to get the F01 right:&lt;/P&gt;&lt;P&gt;Get the length of the string&lt;/P&gt;&lt;P&gt;Pos1 = length -3&lt;/P&gt;&lt;P&gt;Pos2 = length -2&lt;/P&gt;&lt;P&gt;String+Pos1(1) CN (0123456789)&lt;/P&gt;&lt;P&gt;String+Pos2(2) CO (0123456789)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pseudo code, of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522298#M1749588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-06T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522299#M1749589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To find the end of the String, you need to use the end of the string indicator $.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find TOP at last, use TOP$&lt;/P&gt;&lt;P&gt;To find F01 or as a matter of fact the fist character followed by numbers, use &lt;/P&gt;&lt;P&gt; [A&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;Z][0&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;9][0&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;9]$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt; DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lv_input &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;string&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;result_tab &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;match_result_tab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;mcnt &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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* positive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_input &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZI_SD_yyyy_TOP'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'TOP$'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MATCH &lt;SPAN class="L0S52"&gt;COUNT&amp;nbsp; &lt;/SPAN&gt;mcnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RESULTS result_tab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;lv_input&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;15&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;mcnt&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* negative&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_input &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZI_SD_yyyy_TOP_1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'TOP$'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MATCH &lt;SPAN class="L0S52"&gt;COUNT&amp;nbsp; &lt;/SPAN&gt;mcnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RESULTS result_tab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;lv_input&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;15&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;mcnt&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;* Positive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_input &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZI_FI_DOCPOST_F01'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'[A-Z][0-9][0-9]$'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MATCH &lt;SPAN class="L0S52"&gt;COUNT&amp;nbsp; &lt;/SPAN&gt;mcnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RESULTS result_tab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;lv_input&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;15&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;mcnt&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*negative&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; lv_input &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZI_FI_DOCPOST_F01_1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'[A-Z][0-9][0-9]$'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MATCH &lt;SPAN class="L0S52"&gt;COUNT&amp;nbsp; &lt;/SPAN&gt;mcnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RESULTS result_tab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;lv_input&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;15&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;mcnt&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522299#M1749589</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-06-06T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522300#M1749590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah good. Someone who knows what a Regular Expression is. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1495/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 17:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522300#M1749590</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-06T17:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522301#M1749591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's &lt;STRONG&gt;not&lt;/STRONG&gt; a Regular Expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 17:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522301#M1749591</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-06T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522302#M1749592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those who played with the REGEX_TOY should know what it is &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 20:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522302#M1749592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-06T20:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522303#M1749593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct program would be &lt;STRONG&gt;DEMO_&lt;/STRONG&gt;REGEX_TOY &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 20:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522303#M1749593</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-06-06T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522304#M1749594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forget that, DEMO and TOY are just for Playing &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 20:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522304#M1749594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-06T20:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522305#M1749595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that was just a pattern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 02:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522305#M1749595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T02:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522306#M1749596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to see you @SCN &lt;A __default_attr="25099" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegEx has been around for quite sometime but ABAPers are still fixated on CP, NP et al. Imho they are more elegant (and sometimes even more complex &lt;SPAN __jive_emoticon_name="plain" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1495/images/emoticons/plain.gif"&gt;&lt;/SPAN&gt;) to use than the ABAP string operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Honestly I tend to use simple RegEx and avoid using complex ones &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 06:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522306#M1749596</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-06-07T06:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522307#M1749597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was really a helpful answer, But I'm looking for more patterns here. Can we check the length of string using these regular expressions. Suppose I have "ZBH_XX'&amp;nbsp;&amp;nbsp; where XX is module name say SD.&lt;/P&gt;&lt;P&gt;ZBH is always constant and I should only use two characters in place of XX. So totally need to check thru regular expression if the string is of length 6 and at the same time checking if ZBH_ are the first four characters and then followed by two characters only ( total length is 6 characters). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using "ZBH[_][A-Z]{2} but failed to get correct entries . using FIND FIRST OCCURENCE OF regex is also showing "ZBH_ABC' also as correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be waiting for your answer.&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>Fri, 07 Jun 2013 13:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522307#M1749597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522308#M1749598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this regex and see how value of sy-subrc changes.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FIND &lt;/SPAN&gt;REGEX &lt;SPAN style="color: #4da619;"&gt;'^ZBH_[A-Z]{2}$' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'ZBH_XXABC'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;:&lt;/SPAN&gt;/ sy&lt;SPAN style="color: #808080;"&gt;-&lt;/SPAN&gt;subrc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FIND &lt;/SPAN&gt;REGEX &lt;SPAN style="color: #4da619;"&gt;'^ZBH_[A-Z]{2}$' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="color: #4da619;"&gt;'ZBH_XX'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;:&lt;/SPAN&gt;/ sy&lt;SPAN style="color: #808080;"&gt;-&lt;/SPAN&gt;subrc&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 13:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522308#M1749598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522309#M1749599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you need is the $ sign at end of the regex to tell the regex to stop searching after 2 characters {2}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your regex would be ZBH_[A-Z]{2}$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use program DEMO_REGEX_TOY to test it out.&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;P&gt;ZBH_SD&lt;/P&gt;&lt;P&gt;ZBH_SD_1&lt;/P&gt;&lt;P&gt;ZBH_ABC&lt;/P&gt;&lt;P&gt;ZBH_AB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ALL Occurnaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output (highlighted are match):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP', 'Courier New';"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;ZBH_SD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;ZBH_SD_1&lt;BR /&gt;ZBH_ABC&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;ZBH_AB&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, you didn't mention this in your earlier question so don't expect to get answer. You need to ask to get the direction!&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;sri r wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was really a helpful answer, But I'm looking for more patterns here. Can we check the length of string using these regular expressions. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 13:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522309#M1749599</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-06-07T13:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522310#M1749600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suhas - Glad that you noticed &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1495/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; Just kidding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use Regex for every possible opportunity. I need to admit, that I might not get that many chances. To your point, I know many developers don't yet realize the power of regex thus dont care to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 13:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522310#M1749600</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2013-06-07T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression patterns</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522311#M1749601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information you provided which was helpful. You are right, I should have added the second question earlier in the discussion but I realized it later. Anyways this question is now answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 06:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regular-expression-patterns/m-p/9522311#M1749601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-10T06:59:29Z</dc:date>
    </item>
  </channel>
</rss>

