<?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 rex mode=sed syntax in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81767#M20735</link>
    <description>&lt;P&gt;I apolagize for the simplicity of this question. I have scowered all over splunk answers and could find or make sense of a solutions from what I have found.&lt;/P&gt;

&lt;P&gt;I need to remove %20 from my search and replace with a space.  I have tried:&lt;/P&gt;

&lt;P&gt;rex mode=sed "s/%20/ /"&lt;BR /&gt;
rex mode=sed "s/%20/ /g"&lt;BR /&gt;
rex mode=sed field=fieldname "s/%20/ /g"&lt;/P&gt;

&lt;P&gt;I am sure it is not registering with me whith the slashes what is needed in the sed sytax.&lt;/P&gt;

&lt;P&gt;Thank you for any assistance.&lt;/P&gt;

&lt;P&gt;Cory&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2013 19:29:58 GMT</pubDate>
    <dc:creator>cschafer1</dc:creator>
    <dc:date>2013-10-03T19:29:58Z</dc:date>
    <item>
      <title>rex mode=sed syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81767#M20735</link>
      <description>&lt;P&gt;I apolagize for the simplicity of this question. I have scowered all over splunk answers and could find or make sense of a solutions from what I have found.&lt;/P&gt;

&lt;P&gt;I need to remove %20 from my search and replace with a space.  I have tried:&lt;/P&gt;

&lt;P&gt;rex mode=sed "s/%20/ /"&lt;BR /&gt;
rex mode=sed "s/%20/ /g"&lt;BR /&gt;
rex mode=sed field=fieldname "s/%20/ /g"&lt;/P&gt;

&lt;P&gt;I am sure it is not registering with me whith the slashes what is needed in the sed sytax.&lt;/P&gt;

&lt;P&gt;Thank you for any assistance.&lt;/P&gt;

&lt;P&gt;Cory&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 19:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81767#M20735</guid>
      <dc:creator>cschafer1</dc:creator>
      <dc:date>2013-10-03T19:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: rex mode=sed syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81768#M20736</link>
      <description>&lt;P&gt;That's really how you would do it with &lt;CODE&gt;rex mode=sed&lt;/CODE&gt; so I really don't know why it's not working for you. However I suggest an alternate solution that seems more appropriate in your scenario anyway: use &lt;CODE&gt;eval&lt;/CODE&gt;'s &lt;CODE&gt;urldecode&lt;/CODE&gt; function instead. It will read a string, decode all URL encoded entities and return the decoded string.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval yourfield=urldecode(yourfield)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2013 19:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81768#M20736</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-03T19:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: rex mode=sed syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81769#M20737</link>
      <description>&lt;P&gt;That worked... Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81769#M20737</guid>
      <dc:creator>cschafer1</dc:creator>
      <dc:date>2013-10-03T20:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: rex mode=sed syntax</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81770#M20738</link>
      <description>&lt;P&gt;Awesome. Could you please mark my answer as accepted (click the tick mark on the left)? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 20:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-mode-sed-syntax/m-p/81770#M20738</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-03T20:25:50Z</dc:date>
    </item>
  </channel>
</rss>

