<?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: How do I write a search to replace an asterisk character in a string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205903#M59884</link>
    <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval my-new-field=replace(string-to-replace,"\*","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Feb 2016 10:03:58 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2016-02-17T10:03:58Z</dc:date>
    <item>
      <title>How do I write a search to replace an asterisk character in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205902#M59883</link>
      <description>&lt;P&gt;I want to replace the &lt;CODE&gt;*&lt;/CODE&gt; character in a string with the replace command. How do I apply the &lt;CODE&gt;*&lt;/CODE&gt; by escaping it, not to replace the whole string? &lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 09:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205902#M59883</guid>
      <dc:creator>szabados</dc:creator>
      <dc:date>2016-02-17T09:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write a search to replace an asterisk character in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205903#M59884</link>
      <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval my-new-field=replace(string-to-replace,"\*","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 10:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205903#M59884</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-02-17T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write a search to replace an asterisk character in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205904#M59885</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
You can use rex command with mode=sed attribute . see the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ..........................| rex mode=sed "s/\"\"/\"\*\"/g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 10:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-a-search-to-replace-an-asterisk-character-in-a/m-p/205904#M59885</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-02-17T10:24:27Z</dc:date>
    </item>
  </channel>
</rss>

