<?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 fields using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330142#M98270</link>
    <description>&lt;P&gt;I have the below values in a field ,&lt;/P&gt;

&lt;P&gt;Sadf123.dfd.com&lt;BR /&gt;
er-md-kt-mgmt.com&lt;BR /&gt;
&lt;A href="mailto:feb-fe345@tbm.com"&gt;feb-fe345@tbm.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I need to extract the values like below ,&lt;BR /&gt;
Sadf123&lt;BR /&gt;
er-md-kt&lt;BR /&gt;
feb-fe345&lt;/P&gt;

&lt;P&gt;Can anyone help me to extract this &lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 11:07:26 GMT</pubDate>
    <dc:creator>umsundar2015</dc:creator>
    <dc:date>2018-04-13T11:07:26Z</dc:date>
    <item>
      <title>how to extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330142#M98270</link>
      <description>&lt;P&gt;I have the below values in a field ,&lt;/P&gt;

&lt;P&gt;Sadf123.dfd.com&lt;BR /&gt;
er-md-kt-mgmt.com&lt;BR /&gt;
&lt;A href="mailto:feb-fe345@tbm.com"&gt;feb-fe345@tbm.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I need to extract the values like below ,&lt;BR /&gt;
Sadf123&lt;BR /&gt;
er-md-kt&lt;BR /&gt;
feb-fe345&lt;/P&gt;

&lt;P&gt;Can anyone help me to extract this &lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 11:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330142#M98270</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2018-04-13T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330143#M98271</link>
      <description>&lt;P&gt;Hi @umsundar2015,&lt;BR /&gt;
Try This:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex "(?&amp;lt;string&amp;gt;\S+)[\.|\-|@]\w+\.com"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Apr 2018 11:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330143#M98271</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-04-13T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330144#M98272</link>
      <description>&lt;P&gt;thank you .&lt;/P&gt;

&lt;P&gt;String here means the field name rit ? &lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 12:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330144#M98272</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2018-04-13T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330145#M98273</link>
      <description>&lt;P&gt;This is not working , it displays values like &lt;BR /&gt;
wkspfbtl18.devqa&lt;/P&gt;

&lt;P&gt;Can you please help with other regex&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 12:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330145#M98273</guid>
      <dc:creator>umsundar2015</dc:creator>
      <dc:date>2018-04-13T12:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330146#M98274</link>
      <description>&lt;P&gt;string is the field name to be extracted...&lt;BR /&gt;
here I assume that before your &lt;CODE&gt;.com&lt;/CODE&gt; you need to extract till any special characters(like . or - or @) comes...&lt;BR /&gt;
Please provide your raw data where it wont work&lt;BR /&gt;
have a look at regex101 which is helpful site for trial  &lt;A href="https://regex101.com/r/088pwQ/1"&gt;https://regex101.com/r/088pwQ/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 13:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-using-regex/m-p/330146#M98274</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-04-13T13:09:26Z</dc:date>
    </item>
  </channel>
</rss>

