<?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 to extract last words in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-last-words/m-p/646228#M223696</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;lastword&amp;gt;[\w-]+)\W*?$"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 08 Jun 2023 04:16:26 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-06-08T04:16:26Z</dc:date>
    <item>
      <title>How to extract last words?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-last-words/m-p/646226#M223694</link>
      <description>&lt;P&gt;Hi I have sample like this&lt;/P&gt;
&lt;P&gt;Source&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;Sample time from tx-templated&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;efghi examl from templated&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;Sample time from [templated]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to extract the the values of last word as show below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Source&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Extract Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample time from &lt;STRONG&gt;tx-templated&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tx-templated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;efghi examl from &lt;STRONG&gt;templated&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; templated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample time from [&lt;STRONG&gt;templated&lt;/STRONG&gt;]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;templated&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to do via regex?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for help&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-last-words/m-p/646226#M223694</guid>
      <dc:creator>akshayinnamuri</dc:creator>
      <dc:date>2023-06-08T12:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract last words</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-last-words/m-p/646228#M223696</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;lastword&amp;gt;[\w-]+)\W*?$"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 04:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-last-words/m-p/646228#M223696</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T04:16:26Z</dc:date>
    </item>
  </channel>
</rss>

