<?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: Adding delimiter to a field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526782#M148695</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/(?&amp;lt;pair&amp;gt;\w{2})/\1-/g s/-$//g"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 28 Oct 2020 08:54:15 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-10-28T08:54:15Z</dc:date>
    <item>
      <title>Adding delimiter to a field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526777#M148693</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need some help in creating a new field,&lt;/P&gt;&lt;P&gt;I have a field like following&lt;/P&gt;&lt;TABLE width="140"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="140"&gt;Field 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AABBCCDDEEFF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAAABBBBCCCC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id like to make a new field and the values become :&lt;/P&gt;&lt;TABLE width="189"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="189"&gt;AA-BB-CC-DD-EE-FF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA-AA-BB-BB-CC-CC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could someone help me with this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 08:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526777#M148693</guid>
      <dc:creator>Laxman24</dc:creator>
      <dc:date>2020-10-28T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding delimiter to a field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526782#M148695</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/(?&amp;lt;pair&amp;gt;\w{2})/\1-/g s/-$//g"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Oct 2020 08:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526782#M148695</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-28T08:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding delimiter to a field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526797#M148698</link>
      <description>&lt;P&gt;Thank you!!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it works&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/526797#M148698</guid>
      <dc:creator>Laxman24</dc:creator>
      <dc:date>2020-10-28T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding delimiter to a field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/632937#M219862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;please can you explain me the regular expression which you have written to fulfil the request.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 08:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/632937#M219862</guid>
      <dc:creator>ayushisrivastav</dc:creator>
      <dc:date>2023-03-02T08:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding delimiter to a field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/632942#M219865</link>
      <description>&lt;P&gt;Firstly, rex is put into stream-edit (sed) mode.&lt;/P&gt;&lt;P&gt;The regular expression is in two parts (separated by a space)&lt;/P&gt;&lt;P&gt;Secondly, the first sed expression means substitute (s) the captured group&amp;nbsp;(?&amp;lt;pair&amp;gt;\w{2}) of 2 word-characters with the first captured group (\1) followed by a hyphen (1) done globally (g) through the field.&lt;/P&gt;&lt;P&gt;Thirdly, the second sed expression means substitute (s) the hyphen (-) at the end ($) for nothing i.e. remove it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 09:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-delimiter-to-a-field-values/m-p/632942#M219865</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T09:10:16Z</dc:date>
    </item>
  </channel>
</rss>

