<?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: Reg string identification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695095#M1293907</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;Use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_position TYPE sy-fdpos,&lt;/P&gt;&lt;P&gt;      v_alpha(52).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;       text(100),&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-text = '*********break adfljsdalfj jalsfdjsladj'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-text = '$$$$$$$$$breakfast***********'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-text = '********&lt;STRONG&gt;break#&lt;/STRONG&gt;************'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;  CLEAR v_position.&lt;/P&gt;&lt;P&gt;  SEARCH itab-text FOR 'break' IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    v_position = sy-fdpos + 5.&lt;/P&gt;&lt;P&gt;    IF itab-text+v_position(1) = ' ' OR&lt;/P&gt;&lt;P&gt;       NOT itab-text+v_position(1) CO v_alpha.&lt;/P&gt;&lt;P&gt;      WRITE: itab-text.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2009 07:27:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-11T07:27:35Z</dc:date>
    <item>
      <title>Reg string identification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695091#M1293903</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 have a 3 recordslike&lt;/P&gt;&lt;P&gt; 1)    '*********break adfljsdalfj jalsfdjsladj'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) '$$$$$$$$$breakfast***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) '********&lt;STRONG&gt;break#&lt;/STRONG&gt;************'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an input field like 'break'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when i have search for those records with 'break' then requires to pick only 1st and 3rd record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with SEARCH and FIND commands ...But iam unable to get those required records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise on this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 15:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695091#M1293903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reg string identification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695092#M1293904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can use the operator CP (Contains Pattern).&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 16:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695092#M1293904</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2009-06-10T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reg string identification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695093#M1293905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do CS on the variable for value as '*break'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Nanda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 16:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695093#M1293905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T16:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reg string identification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695094#M1293906</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;You can use regular expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIND REGEX '\&amp;lt;break\&amp;gt;' IN v_char.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the abap help, you will find the documentation for REGEX statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Start and end of a word&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The operator \&amp;lt; fits at the start of a word and the operator \&amp;gt; fits at the end of a word. ... . A word is defined as an uninterrupted sequence of alphanumeric characters.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Darley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 16:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695094#M1293906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reg string identification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695095#M1293907</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;Use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_position TYPE sy-fdpos,&lt;/P&gt;&lt;P&gt;      v_alpha(52).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;       text(100),&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-text = '*********break adfljsdalfj jalsfdjsladj'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-text = '$$$$$$$$$breakfast***********'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-text = '********&lt;STRONG&gt;break#&lt;/STRONG&gt;************'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;  CLEAR v_position.&lt;/P&gt;&lt;P&gt;  SEARCH itab-text FOR 'break' IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    v_position = sy-fdpos + 5.&lt;/P&gt;&lt;P&gt;    IF itab-text+v_position(1) = ' ' OR&lt;/P&gt;&lt;P&gt;       NOT itab-text+v_position(1) CO v_alpha.&lt;/P&gt;&lt;P&gt;      WRITE: itab-text.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 07:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-string-identification/m-p/5695095#M1293907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T07:27:35Z</dc:date>
    </item>
  </channel>
</rss>

