<?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 to extract first word from the given format. . in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149901#M41968</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have following  values:&lt;BR /&gt;
Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6,&lt;BR /&gt;&lt;BR /&gt;
D-LINK DSL-500B Geracao II,&lt;BR /&gt;&lt;BR /&gt;
COMTREND-COMTREND CT-5072S ,&lt;BR /&gt;
I need to extract only first word like:Thomson,D-LINK,COMTREND.Can any one help me in writing regex to this.&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2014 08:30:13 GMT</pubDate>
    <dc:creator>kavyatim</dc:creator>
    <dc:date>2014-05-02T08:30:13Z</dc:date>
    <item>
      <title>how to extract first word from the given format. .</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149901#M41968</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have following  values:&lt;BR /&gt;
Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6,&lt;BR /&gt;&lt;BR /&gt;
D-LINK DSL-500B Geracao II,&lt;BR /&gt;&lt;BR /&gt;
COMTREND-COMTREND CT-5072S ,&lt;BR /&gt;
I need to extract only first word like:Thomson,D-LINK,COMTREND.Can any one help me in writing regex to this.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 08:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149901#M41968</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-05-02T08:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract first word from the given format. .</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149902#M41969</link>
      <description>&lt;P&gt;Hi kavyatim,&lt;/P&gt;

&lt;P&gt;if the needed words are always the first words at the start of a new line, use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "^(?&amp;lt;myField&amp;gt;\w+(\s|-LINK|))" | table myField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will get you a table of &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Thomson&lt;/LI&gt;
&lt;LI&gt;D-LINK&lt;/LI&gt;
&lt;LI&gt;COMTREND&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 09:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149902#M41969</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-05-02T09:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract first word from the given format. .</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149903#M41970</link>
      <description>&lt;P&gt;This might be helpful&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;this is the link for Automatic generation of rex&lt;/P&gt;

&lt;P&gt;Watch this video&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/view/SP-CAAADUY"&gt;http://www.splunk.com/view/SP-CAAADUY&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 10:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149903#M41970</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2014-05-02T10:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract first word from the given format. .</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149904#M41971</link>
      <description>&lt;P&gt;It's a bit ugly to have the dash sometimes be part of the word (D-LINK) and sometimes serve as a word separator (COMTREND-COMTREND) - if your list of such exceptions is large then you'll have to build a large regex.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 16:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-first-word-from-the-given-format/m-p/149904#M41971</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-02T16:24:30Z</dc:date>
    </item>
  </channel>
</rss>

