<?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: explanation for regex needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365701#M523779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I played with REGEX in ABAP. Some 	drawbacka remain because there is no ISO or other common definition of regualr expressions and the results of more complex expressions may be different for different languages and applications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance MS WORD search &amp;amp; replace with patterns activated interprets regular expressions including back references, ABAP did not support back references when I tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, an UN or ISO definition will be written down soon. For the time being it may be helpful if SAP tells us at least where the ABAP regex has differences compared with i.e. Regular Expressions in Single UNIX ® Specification, Version 2 (http://regexlib.com/DisplayPatterns.aspx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 09:43:06 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2008-07-25T09:43:06Z</dc:date>
    <item>
      <title>explanation for regex needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365699#M523777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi intellectuals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the new regex functionality is really amazing - but not easy to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to start a small competition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleas explain in detail the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  whatever TYPE string,
  matcher TYPE REF TO cl_abap_matcher.

matcher = cl_abap_matcher=&amp;gt;create( 
            pattern = `w+(.w+)*@(w+.)+(w{2,4})`
            text    = whatever ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to know the evaluation check procedure matcher-&amp;gt;match( ). Just imagine what could I put into string whatever to match or not match the expression pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jun 2007 12:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365699#M523777</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-06-16T12:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: explanation for regex needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365700#M523778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;maybe this on is a bit late... \w is a group of characters containing any word usually this one \[A-Za-z0-9_\]... &lt;/P&gt;&lt;P&gt;But you may check out this [website|http://www.regular-expressions.info/charclass.html] which i found quite amazing helpfull. &lt;/P&gt;&lt;P&gt;And your code is probably a mailadress... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rumpf Johannes on Feb 12, 2008 4:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rumpf Johannes on Feb 12, 2008 4:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 15:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365700#M523778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: explanation for regex needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365701#M523779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I played with REGEX in ABAP. Some 	drawbacka remain because there is no ISO or other common definition of regualr expressions and the results of more complex expressions may be different for different languages and applications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance MS WORD search &amp;amp; replace with patterns activated interprets regular expressions including back references, ABAP did not support back references when I tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, an UN or ISO definition will be written down soon. For the time being it may be helpful if SAP tells us at least where the ABAP regex has differences compared with i.e. Regular Expressions in Single UNIX ® Specification, Version 2 (http://regexlib.com/DisplayPatterns.aspx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 09:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365701#M523779</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-07-25T09:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: explanation for regex needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365702#M523780</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 also played with regular expressions in ABAP and other tools. And every tool worked a little bit different. According to the SAP documentation is ABAP using the [Boost Regex Library|http://www.boost.org/]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause it is not very easy to implement REGEX machines I am not wondering why there are such differents in behaviour. But why ABAP behaves different when using FIND REGEX and the regex classes that is still a not answered question -&amp;gt; &lt;SPAN __jive_macro_name="message" id="5171804"&gt;&lt;/SPAN&gt; and &lt;SPAN __jive_macro_name="message" id="5113501"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 10:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365702#M523780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T10:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: explanation for regex needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365703#M523781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i think, i've read that ABAP uses the POSIX standard for RegEx. My experience is to use in windows tools like "textpad" to test my regular expressions.&lt;/P&gt;&lt;P&gt;reg, JR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 12:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explanation-for-regex-needed/m-p/2365703#M523781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T12:33:23Z</dc:date>
    </item>
  </channel>
</rss>

