<?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: Replace spaces in a string with Tab character in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348510#M1992532</link>
    <description>&lt;P&gt;Thank you &lt;SPAN class="mention-scrubbed"&gt;mateuszadamus&lt;/SPAN&gt;, it works!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 08:47:33 GMT</pubDate>
    <dc:creator>Flavio</dc:creator>
    <dc:date>2021-03-08T08:47:33Z</dc:date>
    <item>
      <title>Replace spaces in a string with Tab character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348507#M1992529</link>
      <description>&lt;P&gt;Dear all, &lt;/P&gt;
  &lt;P&gt;I'm looking for a way to replace all the spaces in a string, when they consequently occur more than one time, with a single 'Tab' character;&lt;/P&gt;
  &lt;P&gt;here a sample of the string&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;RAW MATERIAL TOOLS               82,000         59.083,200         52.062,420        148.121,834              0,000              0,000  &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;and the desired result:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;RAW MATERIAL TOOLS'Tab'82,000'Tab'59.083,200'Tab'52.062,420'Tab'148.121,834'Tab'0,000'Tab'0,000  
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;is it possible to get the desired result with Regex?&lt;/P&gt;
  &lt;P&gt;any help is highly appreciated&lt;/P&gt;
  &lt;P&gt;thank you and best regards,&lt;/P&gt;
  &lt;P&gt;Flavio&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348507#M1992529</guid>
      <dc:creator>Flavio</dc:creator>
      <dc:date>2021-03-08T07:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace spaces in a string with Tab character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348508#M1992530</link>
      <description>&lt;P&gt;Hi, try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_string = replace( val = lv_string regex = '\s{2,}' with = cl_abap_char_utilities=&amp;gt;horizontal_tab occ = 0 ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348508#M1992530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-03-08T08:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace spaces in a string with Tab character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348509#M1992531</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;flavio.ciotola4&lt;/SPAN&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES OF REGEX '[ ]{2,}' IN lv_string WITH cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/CODE&gt;&lt;/PRE&gt;
Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Mon, 08 Mar 2021 08:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348509#M1992531</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-08T08:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replace spaces in a string with Tab character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348510#M1992532</link>
      <description>&lt;P&gt;Thank you &lt;SPAN class="mention-scrubbed"&gt;mateuszadamus&lt;/SPAN&gt;, it works!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348510#M1992532</guid>
      <dc:creator>Flavio</dc:creator>
      <dc:date>2021-03-08T08:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace spaces in a string with Tab character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348511#M1992533</link>
      <description>&lt;P&gt;OCCURANCES -&amp;gt; OCCURRENCES &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Auto-test code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data(lv_string) = |RAW MATERIAL TOOLS               82,000         59.083,200         52.062,420        148.121,834              0,000              0,000  |.
REPLACE ALL OCCURRENCES OF REGEX '[ ]{2,}' IN lv_string WITH cl_abap_char_utilities=&amp;gt;horizontal_tab.
assert lv_string = |RAW MATERIAL TOOLS\t82,000\t59.083,200\t52.062,420\t148.121,834\t0,000\t0,000\t|.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348511#M1992533</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-08T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace spaces in a string with Tab character</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348512#M1992534</link>
      <description>&lt;P&gt;Fixed the typo.&lt;/P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Mon, 08 Mar 2021 10:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-spaces-in-a-string-with-tab-character/m-p/12348512#M1992534</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-03-08T10:00:57Z</dc:date>
    </item>
  </channel>
</rss>

