<?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: Help With Regular Expression in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129270#M1975005</link>
    <description>&lt;P&gt;I hope you have now one step in regular expressions and can learn more powerful ones by reading the documentation.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 13:57:21 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2020-05-08T13:57:21Z</dc:date>
    <item>
      <title>Help With Regular Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129265#M1975000</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I need a regex to use on Replace statement, that clear all xXmlCTe tags on a string.&lt;/P&gt;
  &lt;P&gt;Originally, string don't have line breaks or spaces between tags.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;xXMLCTe xmlns:ns0="http://www.teste1.com"&amp;gt;
	&amp;lt;xXMLCTe xmlns="http://www.teste2.com"&amp;gt;
		&amp;lt;cteProc versao="3.00"&amp;gt;....&amp;lt;/cteProc&amp;gt;
	&amp;lt;/xXMLCTe&amp;gt;
&amp;lt;/xXMLCTe&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After replace...&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;cteProc versao="3.00"&amp;gt;....&amp;lt;/cteProc&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If syntax is different on java and ABAP, I would appreciate if you could send me both.&lt;/P&gt;
  &lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 23:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129265#M1975000</guid>
      <dc:creator>miguel_motta</dc:creator>
      <dc:date>2020-05-07T23:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Regular Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129266#M1975001</link>
      <description>&lt;P&gt;Something like this regular expression? (run program DEMO_REGEX_TOY)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/?xXMLCTe[^&amp;gt;]*&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;? = previous character is optional&lt;/P&gt;&lt;P&gt;[^...] any character which is not one of the characters inside&lt;/P&gt;&lt;P&gt;* repeat previous element zero or any number of times&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 04:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129266#M1975001</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-08T04:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Regular Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129267#M1975002</link>
      <description>&lt;P&gt;Since he is going to replace the tags, can we only focus on the starting part of the tag with the below regular expression: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;\/?xXMLCTe&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It works very similar to what Sandra has mentioned, it will select only the tag name so it might come in handy if you want to keep the attributes.&lt;BR /&gt;&lt;BR /&gt;You can play around in &lt;A href="https://regexr.com/" target="test_blank"&gt;https://regexr.com/&lt;/A&gt; it is really helpful for regex.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 05:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129267#M1975002</guid>
      <dc:creator>former_member663017</dc:creator>
      <dc:date>2020-05-08T05:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Regular Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129268#M1975003</link>
      <description>&lt;P&gt;Hi, Miguel,&lt;/P&gt;&lt;P&gt;I would like to note that generally there are tools for XML processing in ABAP, so there is no need to reimplement XML parser/builder. Regexp might be ok for this minor task, but should you have something more complex later - I would recommend to have a look at those tools.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 09:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129268#M1975003</guid>
      <dc:creator>egor_malov</dc:creator>
      <dc:date>2020-05-08T09:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Regular Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129269#M1975004</link>
      <description>&lt;P&gt;Thanks for all!&lt;/P&gt;&lt;P&gt;Sandra, your regular expression is exactly what I need.&lt;/P&gt;&lt;P&gt;Accept button is not available for me.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 13:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129269#M1975004</guid>
      <dc:creator>miguel_motta</dc:creator>
      <dc:date>2020-05-08T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help With Regular Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129270#M1975005</link>
      <description>&lt;P&gt;I hope you have now one step in regular expressions and can learn more powerful ones by reading the documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 13:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-regular-expression/m-p/12129270#M1975005</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-08T13:57:21Z</dc:date>
    </item>
  </channel>
</rss>

