<?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: How to use regular expression to find string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936686#M1151478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Liu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use RegEx as    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
d+
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether you are using CL_ABAP_REGEX class then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zars.
 
data: regex   type ref to cl_abap_regex,
      matcher type ref to cl_abap_matcher,
      match   type c length 1.
 
create object regex exporting pattern = 'd+'
                              ignore_case = ''.
 
matcher = regex-&amp;gt;create_matcher( text = 'Test123tes456' ).
 
match = matcher-&amp;gt;match( ).
 
write match
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find more details regarding REGEX and POSIX examples here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.regular-expressions.info/tutorial.html" target="test_blank"&gt;http://www.regular-expressions.info/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Dec 2008 04:01:44 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-12-24T04:01:44Z</dc:date>
    <item>
      <title>How to use regular expression to find string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936684#M1151476</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;who know how to get all digits from the string "Alerts 4520 ( 227550 )  (  98 Available  )" by regular expression, thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br, Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 03:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936684#M1151476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T03:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regular expression to find string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936685#M1151477</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 &lt;/P&gt;&lt;P&gt;CO = "contains only", &lt;/P&gt;&lt;P&gt;CA = "contains any".&lt;/P&gt;&lt;P&gt; CN "contains not only"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF string CO '0123456789'&lt;/P&gt;&lt;P&gt; the string contains only digits&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt; the string contains not only digits (could be no digits at all)&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 03:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936685#M1151477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T03:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regular expression to find string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936686#M1151478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Liu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use RegEx as    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
d+
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether you are using CL_ABAP_REGEX class then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  zars.
 
data: regex   type ref to cl_abap_regex,
      matcher type ref to cl_abap_matcher,
      match   type c length 1.
 
create object regex exporting pattern = 'd+'
                              ignore_case = ''.
 
matcher = regex-&amp;gt;create_matcher( text = 'Test123tes456' ).
 
match = matcher-&amp;gt;match( ).
 
write match
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find more details regarding REGEX and POSIX examples here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.regular-expressions.info/tutorial.html" target="test_blank"&gt;http://www.regular-expressions.info/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 04:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-regular-expression-to-find-string/m-p/4936686#M1151478</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-12-24T04:01:44Z</dc:date>
    </item>
  </channel>
</rss>

