<?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: Regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622081#M216229</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 10:19:53 GMT</pubDate>
    <dc:creator>SabariRajanT</dc:creator>
    <dc:date>2022-11-25T10:19:53Z</dc:date>
    <item>
      <title>What regex to use to remove \\ form the hostname fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622063#M216222</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a hostname stating \\sent134&lt;/P&gt;
&lt;P&gt;I need to remove this \\ using regex and it should be like this:&amp;nbsp; sent134&lt;/P&gt;
&lt;P&gt;Actual:&lt;/P&gt;
&lt;P&gt;\\sent134&lt;/P&gt;
&lt;P&gt;Expected should be:&lt;/P&gt;
&lt;P&gt;sent134&lt;/P&gt;
&lt;P&gt;===&lt;/P&gt;
&lt;P&gt;Please provide regex to remove \\ form the hostname fields.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 16:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622063#M216222</guid>
      <dc:creator>SabariRajanT</dc:creator>
      <dc:date>2022-11-27T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622069#M216223</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval foo="\\\\sent134"
| fields - _time
```above generates testdata like "\\sent134" ```
| rex mode=sed field=foo "s/\\\//g"&lt;/LI-CODE&gt;&lt;P&gt;previous should work. If needed add/remove \-characters (as usually &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 09:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622069#M216223</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-11-25T09:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622081#M216229</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 10:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-regex-to-use-to-remove-form-the-hostname-fields/m-p/622081#M216229</guid>
      <dc:creator>SabariRajanT</dc:creator>
      <dc:date>2022-11-25T10:19:53Z</dc:date>
    </item>
  </channel>
</rss>

