<?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: Regex Pattern in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356779#M105548</link>
    <description>&lt;P&gt;HI svercelli,&lt;BR /&gt;
if your need is to take all the chars after the first dot of each row, this is your regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[^\.]*\.(?&amp;lt;All&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your can test it at &lt;A href="https://regex101.com/r/PTqtiI/1"&gt;https://regex101.com/r/PTqtiI/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;if instead you need is to take all the chars after the second dot of each row, this is your regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;([^\.]*\.){2}(?&amp;lt;All&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your can test it at &lt;A href="https://regex101.com/r/8gxaHO/1"&gt;https://regex101.com/r/8gxaHO/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2017 06:00:02 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-05-01T06:00:02Z</dc:date>
    <item>
      <title>Regex Pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356776#M105545</link>
      <description>&lt;P&gt;I'm fairly new to Regex and having a difficult time coming up with a pattern for my query. I need to match everything after the second period in all of these values but can't figure out how&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TMS_KEP.Male_RTU2.Male_PRM1_GL_OUT
TMS_KEP.Male_RTU2.Male_PRM1_PS_IN
TMS_KEP.Female_RTU2.Female_WC8_RL_OUT
TMS_KEP.Male_RTU1.Male_WC3_FS_OUT
TMS_KEP.Male_RTU1.Male_WC5_FS_OUT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are some slight variations in this but essentially I need a pattern that takes everything after the second period.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 05:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356776#M105545</guid>
      <dc:creator>svercelli</dc:creator>
      <dc:date>2017-05-01T05:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356777#M105546</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | rex \w+\.\w+\.(?&amp;lt;FIELD&amp;gt;\w+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This will capture everything after the 2nd period and create a new field called &lt;CODE&gt;FIELD&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 05:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356777#M105546</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-05-01T05:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356778#M105547</link>
      <description>&lt;P&gt;This worked perfectly, Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 05:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356778#M105547</guid>
      <dc:creator>svercelli</dc:creator>
      <dc:date>2017-05-01T05:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356779#M105548</link>
      <description>&lt;P&gt;HI svercelli,&lt;BR /&gt;
if your need is to take all the chars after the first dot of each row, this is your regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[^\.]*\.(?&amp;lt;All&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your can test it at &lt;A href="https://regex101.com/r/PTqtiI/1"&gt;https://regex101.com/r/PTqtiI/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;if instead you need is to take all the chars after the second dot of each row, this is your regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;([^\.]*\.){2}(?&amp;lt;All&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your can test it at &lt;A href="https://regex101.com/r/8gxaHO/1"&gt;https://regex101.com/r/8gxaHO/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 06:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Pattern/m-p/356779#M105548</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-01T06:00:02Z</dc:date>
    </item>
  </channel>
</rss>

