<?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 all 1 and 2 character words from a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389533#M168780</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have a string field containing many words and I would like to remove all 1 and 2 character words from it.  How do I do that?  If my first sentence was the field value, the resulting output would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;have string field containing many words and would like remove all and character words from
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 13:09:55 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2018-06-20T13:09:55Z</dc:date>
    <item>
      <title>How do I remove all 1 and 2 character words from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389533#M168780</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have a string field containing many words and I would like to remove all 1 and 2 character words from it.  How do I do that?  If my first sentence was the field value, the resulting output would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;have string field containing many words and would like remove all and character words from
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389533#M168780</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2018-06-20T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove all 1 and 2 character words from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389534#M168781</link>
      <description>&lt;P&gt;Add the following to your existing search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=yourfield mode=sed "s/\b(\w{1,2})\b//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/EPipoO/1"&gt;https://regex101.com/r/EPipoO/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389534#M168781</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-20T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove all 1 and 2 character words from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389535#M168782</link>
      <description>&lt;P&gt;That's the one!  Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 14:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-remove-all-1-and-2-character-words-from-a-field/m-p/389535#M168782</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2018-06-27T14:23:21Z</dc:date>
    </item>
  </channel>
</rss>

