<?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: What should I use to put a TAB literally in a regex replacement within transforms.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305657#M91740</link>
    <description>&lt;P&gt;I cannot get escape codes (other than for captured field references) to work in the &lt;CODE&gt;replace&lt;/CODE&gt; portion of &lt;CODE&gt;sed&lt;/CODE&gt; inside of Splunk so I do not thing that this is possible without pre-processing with your own "glue" before coming into Splunk.   I tried using &lt;CODE&gt;\t&lt;/CODE&gt; and also &lt;CODE&gt;\x09&lt;/CODE&gt; and neither works.&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 16:58:05 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-05-22T16:58:05Z</dc:date>
    <item>
      <title>What should I use to put a TAB literally in a regex replacement within transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305654#M91737</link>
      <description>&lt;P&gt;What should I use to put a TAB literally in a regex replacement within transforms.conf?&lt;/P&gt;

&lt;P&gt;I've tried \t but that's not working.&lt;/P&gt;

&lt;P&gt;I would like to replace a | with tab (ASCI 0x09)&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 12:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305654#M91737</guid>
      <dc:creator>stefan1988</dc:creator>
      <dc:date>2017-05-22T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: What should I use to put a TAB literally in a regex replacement within transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305655#M91738</link>
      <description>&lt;P&gt;Hi stefan1988,&lt;BR /&gt;
are you sure that it's a TAB and not spaces?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 13:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305655#M91738</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-22T13:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: What should I use to put a TAB literally in a regex replacement within transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305656#M91739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Yes I want to place a tab  (ASCII 0x09).&lt;BR /&gt;
\t seems not working.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Stefan&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 13:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305656#M91739</guid>
      <dc:creator>stefan1988</dc:creator>
      <dc:date>2017-05-22T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: What should I use to put a TAB literally in a regex replacement within transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305657#M91740</link>
      <description>&lt;P&gt;I cannot get escape codes (other than for captured field references) to work in the &lt;CODE&gt;replace&lt;/CODE&gt; portion of &lt;CODE&gt;sed&lt;/CODE&gt; inside of Splunk so I do not thing that this is possible without pre-processing with your own "glue" before coming into Splunk.   I tried using &lt;CODE&gt;\t&lt;/CODE&gt; and also &lt;CODE&gt;\x09&lt;/CODE&gt; and neither works.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 16:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/305657#M91740</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-22T16:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: What should I use to put a TAB literally in a regex replacement within transforms.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/510200#M142766</link>
      <description>&lt;P&gt;For me, the only backslash sequences that worked for &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sed&lt;/FONT&gt; &lt;FONT face="courier new,courier"&gt;replacement&lt;/FONT&gt;&lt;/STRONG&gt; were the newline (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\n&lt;/FONT&gt;&lt;/STRONG&gt;) and back references (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\1&lt;/FONT&gt;&lt;/STRONG&gt;, &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\2&lt;/FONT&gt;&lt;/STRONG&gt;, etc.).&lt;/P&gt;&lt;P&gt;I think I'm going to have to put the replacement into an external lookup/command to include the ability to use other characters, like &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\r&lt;/FONT&gt;&lt;/STRONG&gt;, &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\x0D&lt;/FONT&gt;&lt;/STRONG&gt;, &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\t&lt;/FONT&gt;&lt;/STRONG&gt;, or &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;\x09&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 10:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-I-use-to-put-a-TAB-literally-in-a-regex-replacement/m-p/510200#M142766</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2020-07-21T10:32:19Z</dc:date>
    </item>
  </channel>
</rss>

