<?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 My extracted field contains special characters in extracted value. How can I replace it with actual string value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303051#M91191</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My extracted field contains some special characters instead of actual string.&lt;/P&gt;

&lt;P&gt;For ex: &lt;/P&gt;

&lt;P&gt;Email_Address is the field name and it is extracted in the following way: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;data@portal.com
data%40portal.com 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the above, it is getting extracted in 2 ways. One with '@' and one more with '%40' instead of @&lt;BR /&gt;
Whereas, the first one is correct?&lt;/P&gt;

&lt;P&gt;Now, in my search, how can I replace %40 with @ and display only &lt;A href="mailto:data@portal.com"&gt;data@portal.com&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 18:19:11 GMT</pubDate>
    <dc:creator>santosh_hb</dc:creator>
    <dc:date>2017-05-18T18:19:11Z</dc:date>
    <item>
      <title>My extracted field contains special characters in extracted value. How can I replace it with actual string value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303051#M91191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My extracted field contains some special characters instead of actual string.&lt;/P&gt;

&lt;P&gt;For ex: &lt;/P&gt;

&lt;P&gt;Email_Address is the field name and it is extracted in the following way: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;data@portal.com
data%40portal.com 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the above, it is getting extracted in 2 ways. One with '@' and one more with '%40' instead of @&lt;BR /&gt;
Whereas, the first one is correct?&lt;/P&gt;

&lt;P&gt;Now, in my search, how can I replace %40 with @ and display only &lt;A href="mailto:data@portal.com"&gt;data@portal.com&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 18:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303051#M91191</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2017-05-18T18:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: My extracted field contains special characters in extracted value. How can I replace it with actual string value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303052#M91192</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..your search | eval Email_Address =urldecode(Email_Address)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 18:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303052#M91192</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-18T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: My extracted field contains special characters in extracted value. How can I replace it with actual string value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303053#M91193</link>
      <description>&lt;P&gt;Do you mean both emails are extracted, but are on separate lines in the same event?&lt;/P&gt;

&lt;P&gt;If that's the case, try something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Your query&amp;gt; | rex field=Email_Address "(?&amp;lt;Email_Address&amp;gt;.+@[\w\.]+)\n"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 19:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/My-extracted-field-contains-special-characters-in-extracted/m-p/303053#M91193</guid>
      <dc:creator>okayal</dc:creator>
      <dc:date>2017-05-18T19:02:43Z</dc:date>
    </item>
  </channel>
</rss>

