<?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 Replace string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93230#M24008</link>
    <description>&lt;P&gt;I want to replace (" ") in my xml file to single (").Since there is some misplace of double codes in my whole file.So please help&lt;BR /&gt;
&amp;lt;?xml version=""1.0"" encoding=""ISO-9000-1"" ?&amp;gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2012 11:31:44 GMT</pubDate>
    <dc:creator>john</dc:creator>
    <dc:date>2012-03-15T11:31:44Z</dc:date>
    <item>
      <title>Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93230#M24008</link>
      <description>&lt;P&gt;I want to replace (" ") in my xml file to single (").Since there is some misplace of double codes in my whole file.So please help&lt;BR /&gt;
&amp;lt;?xml version=""1.0"" encoding=""ISO-9000-1"" ?&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 11:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93230#M24008</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-03-15T11:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93231#M24009</link>
      <description>&lt;P&gt;Have you tried to open the xml file with an editor, most of them have a find an replace function.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93231#M24009</guid>
      <dc:creator>Livia</dc:creator>
      <dc:date>2012-03-15T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93232#M24010</link>
      <description>&lt;P&gt;I should not replace any values manually in the file.I meant  i want to replace that double codes during time of search only since it should not make any permanent change in xml file.Can u suggest any search query for that&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 06:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93232#M24010</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-03-16T06:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93233#M24011</link>
      <description>&lt;P&gt;try:&lt;BR /&gt;&lt;BR /&gt;
yoursearch | rex mode=sed "s/\"\"/\"/g"&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 06:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93233#M24011</guid>
      <dc:creator>gooza</dc:creator>
      <dc:date>2012-03-16T06:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93234#M24012</link>
      <description>&lt;P&gt;Thanks gooza.its working&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 08:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93234#M24012</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-03-16T08:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93235#M24013</link>
      <description>&lt;P&gt;I had to add the field name to make mine work:&lt;BR /&gt;
(replacing + with a space in my case)&lt;/P&gt;

&lt;P&gt;rex  mode=sed  field=search_term_used  "s/+/ /g"&lt;/P&gt;

&lt;P&gt;Also, in my case I had to escape the +&lt;/P&gt;

&lt;P&gt;weird, when I post this comment, the rex line looses the escape character .&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93235#M24013</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2020-09-28T18:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93236#M24014</link>
      <description>&lt;P&gt;works for me as well&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 13:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93236#M24014</guid>
      <dc:creator>kjamsheed</dc:creator>
      <dc:date>2016-04-08T13:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93237#M24015</link>
      <description>&lt;P&gt;You can try replace function of eval for a single field&lt;/P&gt;

&lt;P&gt;eval n=replace(date, "^(\d{1,2})/(\d{1,2})/", "\2/\1/")&lt;/P&gt;

&lt;P&gt;Else rex will solve your problem 100%&lt;/P&gt;

&lt;P&gt;rex mode=sed "s/\"\"/\"/g"&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 14:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-string/m-p/93237#M24015</guid>
      <dc:creator>meenal901</dc:creator>
      <dc:date>2016-04-08T14:14:33Z</dc:date>
    </item>
  </channel>
</rss>

