<?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: Remove words from a String in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334067#M175290</link>
    <description>&lt;P&gt;Give this a try (Run anywhere sample search, replace line 1 with your search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval comment="La pagina web es muy mala demasiado lenta 1 12 123 44" | table comment 
| eval new_comment=replace(comment,"(^|\s)(\w\w)(\s|$)","\1")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Mar 2017 22:17:50 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-03-02T22:17:50Z</dc:date>
    <item>
      <title>Remove words from a String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334065#M175288</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;

&lt;P&gt;I need to remove words from 2 char in a string, I have a field like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;comment="La pagina web es muy mala demasiado lenta"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I want it to be like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;new_comment="pagina web muy mala demasiado lenta"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where words of 2 char doesn't exist anymore, any idea how to implement this in SPL?&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334065#M175288</guid>
      <dc:creator>sebafdez</dc:creator>
      <dc:date>2017-03-02T22:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove words from a String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334066#M175289</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | rex field=comment mode=sed "s/ .. / /g s/^.. //g s/ ..$//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334066#M175289</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-02T22:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove words from a String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334067#M175290</link>
      <description>&lt;P&gt;Give this a try (Run anywhere sample search, replace line 1 with your search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval comment="La pagina web es muy mala demasiado lenta 1 12 123 44" | table comment 
| eval new_comment=replace(comment,"(^|\s)(\w\w)(\s|$)","\1")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334067#M175290</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-02T22:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove words from a String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334068#M175291</link>
      <description>&lt;P&gt;thanks! works great!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 12:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-words-from-a-String/m-p/334068#M175291</guid>
      <dc:creator>sebafdez</dc:creator>
      <dc:date>2017-03-03T12:27:31Z</dc:date>
    </item>
  </channel>
</rss>

