<?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 help needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632442#M26570</link>
    <description>&lt;P&gt;Thanks &lt;A href="https://answers.sap.com/users/6464/mikepokraka.html"&gt;Mike Pokraka&lt;/A&gt; , tried it with DEMO_REGEX_TOY but I got nothing, any idea why?&lt;/P&gt;
  &lt;P&gt; I tchanged the text and added "11" and "werks" in thw "Text box". &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Ariel&lt;/P&gt;</description>
    <pubDate>Sun, 04 Mar 2018 14:17:35 GMT</pubDate>
    <dc:creator>former_member195999</dc:creator>
    <dc:date>2018-03-04T14:17:35Z</dc:date>
    <item>
      <title>ABAP regex help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632439#M26567</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I'm trying to find code in abap using abap_source_scan &amp;amp; regex.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I want to find if developer used to write company code hard coded in program (or plant or a set of others such as vkorg etc)&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I've been trying to build a regex using the regex toy and succeded finding the company numbers:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;11(\s|pm|qt|00|rt) gave me all the company code I'm searching: 11,11pm,11qt,1100 &amp;amp; 11rt. I wanted to get only lines that include the word "werks" . tried &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;11(\s|pm|qt|00|rt)(?=werks) didn't work. Any idea How can it be done? &lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 08:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632439#M26567</guid>
      <dc:creator>former_member195999</dc:creator>
      <dc:date>2018-02-14T08:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP regex help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632440#M26568</link>
      <description>&lt;P&gt;Awful answer so I put it in the comments.&lt;/P&gt;
  &lt;P&gt;Create a program to look at their transports and go through the programs based on anything they touched. Search the source code of everything they touched for your plant numbers. Then display it as an ALV with a double click.&lt;/P&gt;
  &lt;P&gt;Sorry - I can't think of anything else. I'm hoping someone else has a great answer for you.&lt;/P&gt;
  &lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 13:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632440#M26568</guid>
      <dc:creator>mmcisme1</dc:creator>
      <dc:date>2018-02-15T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP regex help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632441#M26569</link>
      <description>&lt;P&gt;Assuming you also want to exclude commented lines:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;^[^\*](.+)werks = ‘11&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;or cast the net a bit wider with&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;^[^\*](.+)werks(.+)11&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632441#M26569</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-02-15T15:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP regex help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632442#M26570</link>
      <description>&lt;P&gt;Thanks &lt;A href="https://answers.sap.com/users/6464/mikepokraka.html"&gt;Mike Pokraka&lt;/A&gt; , tried it with DEMO_REGEX_TOY but I got nothing, any idea why?&lt;/P&gt;
  &lt;P&gt; I tchanged the text and added "11" and "werks" in thw "Text box". &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Ariel&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 14:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632442#M26570</guid>
      <dc:creator>former_member195999</dc:creator>
      <dc:date>2018-03-04T14:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP regex help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632443#M26571</link>
      <description>&lt;H1&gt;ABAP regex help needed?&lt;/H1&gt;
  &lt;P&gt;Here it is&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenregex_syntax.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenregex_syntax.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 15:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632443#M26571</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-03-04T15:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP regex help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632444#M26572</link>
      <description>&lt;P&gt;I just tried it and you're partly right, the first one needs the equal sign escaped, but the second variant works for me.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;^[^\*](.+)werks(.+)'&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Will find&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;   if werks &amp;lt;&amp;gt; '1234'.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;but ignore &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*    werks = '1234'.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;And of you want to specifically restrict it to equality, then my first variant needs the equal sign escaped:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;^[^\*](.+)werks \= ‘11&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;To break it down: &lt;/P&gt;
  &lt;P&gt;^ : Beginning of line&lt;/P&gt;
  &lt;P&gt;[^\*] : Not a *&lt;/P&gt;
  &lt;P&gt;(.+) : one or more characters&lt;/P&gt;
  &lt;P&gt;werks : werks&lt;/P&gt;
  &lt;P&gt;(.+) : one or more characters&lt;/P&gt;
  &lt;P&gt;' : '&lt;/P&gt;
  &lt;P&gt;Writing this I suppose a better search would be to include different string delimiters: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;^[^\*](.+)werks(.+)['|`|\|]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Mar 2018 16:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-regex-help-needed/m-p/632444#M26572</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-03-04T16:45:07Z</dc:date>
    </item>
  </channel>
</rss>

