<?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: Removing regEx in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289699#M1532627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's good. So it really is a '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the non-regex &lt;STRONG&gt;REPLACE ALL OCCURENCES OF '#' IN my_string WITH space&lt;/STRONG&gt;. And then use &lt;STRONG&gt;CONDENSE NO-GAPS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regex for me has always been trial and error, using the online tutorial and online test tools, which you can find with google.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 11:16:24 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2010-10-04T11:16:24Z</dc:date>
    <item>
      <title>Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289693#M1532621</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 string in the below format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;#&amp;lt;Data&amp;gt;##&amp;gt;&amp;lt;Row&amp;gt;#####&amp;lt;Entry&amp;gt;Test1&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;Dtest2&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;Test3&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;-&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;-&amp;lt;/Entry&amp;gt;#####&amp;lt;.........so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted this string without '#' as below:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;Data&amp;gt;&amp;gt;&amp;lt;Row&amp;gt;&amp;lt;Entry&amp;gt;Test1&amp;lt;/Entry&amp;gt;&amp;lt;Entry&amp;gt;Dtest2&amp;lt;/Entry&amp;gt;&amp;lt;Entry&amp;gt;Test3&amp;lt;/Entry&amp;gt;&amp;lt;Entry&amp;gt;-&amp;lt;/Entry&amp;gt;&amp;lt;Entry&amp;gt;-&amp;lt;/Entry&amp;gt;&amp;lt;.........so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using REPLACE ALL OCCURENCES REGEX '[[:punct:]]' for string with ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is removing even the '&amp;lt;' , '&amp;gt;', '/' , etc...[Its resulting only the alphabets and numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please provide a feasible solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajkamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289693#M1532621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289694#M1532622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURENCES OF REGEX '\Q#\E' IN gv_string WITH ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289694#M1532622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289695#M1532623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code did not work &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajkamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 09:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289695#M1532623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289696#M1532624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go into debug and tell me the hex value of one of these "#"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 10:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289696#M1532624</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-04T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289697#M1532625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The above code did not work &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Nothing changes.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Rajkamal&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already had a feeling this would be your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do as Matt requested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 10:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289697#M1532625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T10:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289698#M1532626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the hex value for '#' 0023.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajkamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 10:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289698#M1532626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289699#M1532627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's good. So it really is a '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the non-regex &lt;STRONG&gt;REPLACE ALL OCCURENCES OF '#' IN my_string WITH space&lt;/STRONG&gt;. And then use &lt;STRONG&gt;CONDENSE NO-GAPS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regex for me has always been trial and error, using the online tutorial and online test tools, which you can find with google.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289699#M1532627</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-04T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289700#M1532628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Funny enough it does work for me then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289700#M1532628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289701#M1532629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh no! Even this is not working for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to explain my scenario a bit brief .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling a URL using web service. The methods called for this are : CALL METHOD http_client-&amp;gt;send , CALL METHOD http_client-&amp;gt;receive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then storing the received data as:  result = http_client-&amp;gt;response-&amp;gt;get_cdata( ). [This is resulting in as XML with '#' as mentioned above].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajkamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289701#M1532629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289702#M1532630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the result an internal table? A single variable? What's the type definition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289702#M1532630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289703#M1532631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result is a variable.&lt;/P&gt;&lt;P&gt;result TYPE string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289703#M1532631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289704#M1532632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: gv_string type string.

gv_string = '&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;#&amp;lt;Data&amp;gt;##&amp;gt;&amp;lt;Row&amp;gt;#####&amp;lt;Entry&amp;gt;Test1&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;Dtest2&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;Test3&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;-&amp;lt;/Entry&amp;gt;#####&amp;lt;Entry&amp;gt;-&amp;lt;/Entry&amp;gt;#####&amp;lt;.........&amp;gt;'.

write: / gv_string.
REPLACE ALL OCCURENCES OF REGEX '\Q#\E' IN gv_string WITH ''.
write: / gv_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example that worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289704#M1532632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289705#M1532633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the above code worked for me as well. Is it like the hard-coded values accept the statement REPLACE ALL OCCURENCES OF REGEX '\Q#\E' IN gv_string WITH '', but not the string which we get dynamically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289705#M1532633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T11:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289706#M1532634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt/Maen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is resolved. The string with #### is not exactly'#' value, but they are actually representing horizontal tab and new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this, i used :&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF SUBSTRING cl_abap_char_utilities=&amp;gt;horizontal_tab IN result WITH ''.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF SUBSTRING cl_abap_char_utilities=&amp;gt;newline IN result WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajkamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 12:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289706#M1532634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-04T12:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Removing regEx</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289707#M1532635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the hex value of the # in your input string wasn't x0023. Which is what we suspected in the first place!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 13:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-regex/m-p/7289707#M1532635</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-04T13:19:35Z</dc:date>
    </item>
  </channel>
</rss>

