<?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 How do I remove specific characters from a string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-specific-characters-from-a-string/m-p/351428#M162361</link>
    <description>&lt;P&gt;For example, I have a string "agreementinquiry-web-2.0.3". My result should only have  "agreementinquiry".&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 20:50:05 GMT</pubDate>
    <dc:creator>joachimroshan</dc:creator>
    <dc:date>2018-03-13T20:50:05Z</dc:date>
    <item>
      <title>How do I remove specific characters from a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-specific-characters-from-a-string/m-p/351428#M162361</link>
      <description>&lt;P&gt;For example, I have a string "agreementinquiry-web-2.0.3". My result should only have  "agreementinquiry".&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-specific-characters-from-a-string/m-p/351428#M162361</guid>
      <dc:creator>joachimroshan</dc:creator>
      <dc:date>2018-03-13T20:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove specific characters from a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-specific-characters-from-a-string/m-p/351429#M162362</link>
      <description>&lt;P&gt;If you want to remove it at search time, then you can use sed to help&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex mode=sed "s/agreementinquiry\S+/agreementinquiry/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It follows the format as &lt;CODE&gt;Replace/&amp;lt;REGEX_TO_CAPTURE&amp;gt;/&amp;lt;REGEX_TO_REPLACE&amp;gt;/global&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you want to remove it at index time, you should use &lt;CODE&gt;SEDCMD&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 21:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-specific-characters-from-a-string/m-p/351429#M162362</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-03-13T21:22:30Z</dc:date>
    </item>
  </channel>
</rss>

