<?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: How to extract a string with regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580739#M202309</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt;&amp;nbsp;How to extract from and To fields For this below Line using Regex&lt;/P&gt;&lt;P&gt;Info: Bounced: DCID 8413617 MID 19338947 From: &amp;lt;MariaDubois@example.com&amp;gt; To: &amp;lt;zecora@buttercupgames.com&amp;gt; RID 0 - 5.4.7 - Delivery expired (message too old) ('000', ['timeout'])&lt;/P&gt;&lt;P&gt;Please help me with the Solution ,Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2022 08:53:27 GMT</pubDate>
    <dc:creator>Kumar2</dc:creator>
    <dc:date>2022-01-12T08:53:27Z</dc:date>
    <item>
      <title>How to extract a string with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/392796#M114268</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I'm having trouble extracting the string "RES ONE Workspace Agent". Can anyone please tell me where I'm going wrong? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=pluginText "(?P(^RES ONE Workspace Agent$))" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[installed on 2017/11/09]\nRES ONE Workspace Agent  [version 10.1.200.0]&lt;/P&gt;

&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 03:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/392796#M114268</guid>
      <dc:creator>dgillette3</dc:creator>
      <dc:date>2018-06-15T03:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/392797#M114269</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Can you please use the code button (101010) to post any search queries and sample data? Looks like some special characters may have gotten lost!&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;^&lt;/CODE&gt; and &lt;CODE&gt;$&lt;/CODE&gt; match start and end of the line. Since the string you want to extract is in the middle of the data, that doesn't work (assuming the sample you shared is the content of the pluginText field on which you apply the regex).&lt;/P&gt;

&lt;P&gt;Probably this would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=pluginText "(?&amp;lt;fieldname&amp;gt;RES ONE Workspace Agent)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just out of curiosity: what is your purpose with extracting a literal string like that? Couldn't you just as well do: &lt;CODE&gt;| eval field = "RES ONE Workspace Agent"&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/392797#M114269</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-15T07:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/392798#M114270</link>
      <description>&lt;P&gt;Thank you Frank, worked like a charm. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 14:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/392798#M114270</guid>
      <dc:creator>dgillette3</dc:creator>
      <dc:date>2018-06-15T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580739#M202309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt;&amp;nbsp;How to extract from and To fields For this below Line using Regex&lt;/P&gt;&lt;P&gt;Info: Bounced: DCID 8413617 MID 19338947 From: &amp;lt;MariaDubois@example.com&amp;gt; To: &amp;lt;zecora@buttercupgames.com&amp;gt; RID 0 - 5.4.7 - Delivery expired (message too old) ('000', ['timeout'])&lt;/P&gt;&lt;P&gt;Please help me with the Solution ,Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 08:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580739#M202309</guid>
      <dc:creator>Kumar2</dc:creator>
      <dc:date>2022-01-12T08:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580742#M202310</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt;&amp;nbsp;In this way&amp;nbsp;&lt;/P&gt;&lt;P&gt;from_mail_id = MariaDubois@example.com&lt;BR /&gt;to_mail_id = zecora@buttercupgames.com&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 08:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580742#M202310</guid>
      <dc:creator>Kumar2</dc:creator>
      <dc:date>2022-01-12T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580811#M202343</link>
      <description>&lt;P&gt;Hello! You may have better luck with your question if you post individually instead of as a reply!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you need help with anything- please don't hesitate to reach out!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 15:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-with-regex/m-p/580811#M202343</guid>
      <dc:creator>yeasuh</dc:creator>
      <dc:date>2022-01-12T15:56:50Z</dc:date>
    </item>
  </channel>
</rss>

