<?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 create a regex domain to not include &amp;quot;@&amp;quot; and terminate capture before &amp;quot;&amp;gt;&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407123#M117606</link>
    <description>&lt;P&gt;Any reason for why you like that approach? It is harder to read and if I interpret the regex101 execution info correctly a lot less efficient than a straightforward &lt;CODE&gt;"@(?&amp;lt;domain&amp;gt;.[^\&amp;gt;]+)"&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Given the 2 line sample from the question, regex101 reports 13 steps for my solution and 125 steps for yours.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 14:48:50 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-06-28T14:48:50Z</dc:date>
    <item>
      <title>How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407117#M117600</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I have been tinkering with regex101 for some time now and no luck.&lt;/P&gt;

&lt;P&gt;I have a field called sender&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Return-Path:&amp;lt;someName@someDomain.com&amp;gt;
Return-Path:&amp;lt;someName@someDomain.com.blah&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to regex the sender so that I get &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;someDomain.com
someDomain.com.blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I want the string to start after @ and end before &amp;gt;&lt;/P&gt;

&lt;P&gt;here is what I started with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=sender "@(?&amp;lt;domain&amp;gt;.*)"  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank  you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407117#M117600</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-06-28T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407118#M117601</link>
      <description>&lt;P&gt;Close, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=sender "@(?&amp;lt;domain&amp;gt;[^\&amp;gt;]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You want to read only characters not equal to &lt;CODE&gt;&amp;gt;&lt;/CODE&gt;. &lt;A href="https://regex101.com/r/WbsXgT/1"&gt;https://regex101.com/r/WbsXgT/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407118#M117601</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-28T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407119#M117602</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;"@(?&amp;lt;domain&amp;gt;.*)&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407119#M117602</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-06-28T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407120#M117603</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=sender "@(?&amp;lt;domain&amp;gt;.[^\&amp;gt;]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407120#M117603</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-06-28T14:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407121#M117604</link>
      <description>&lt;P&gt;Just add the &lt;CODE&gt;&amp;gt;&lt;/CODE&gt;, such as - &lt;CODE&gt;... | rex field=sender "@(?&amp;lt;domain&amp;gt;.*)&amp;gt;"&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407121#M117604</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-06-28T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407122#M117605</link>
      <description>&lt;P&gt;I like this approach myself&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (?&amp;lt;=@)(?&amp;lt;domainName&amp;gt;.*)(?=&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407122#M117605</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-28T14:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407123#M117606</link>
      <description>&lt;P&gt;Any reason for why you like that approach? It is harder to read and if I interpret the regex101 execution info correctly a lot less efficient than a straightforward &lt;CODE&gt;"@(?&amp;lt;domain&amp;gt;.[^\&amp;gt;]+)"&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Given the 2 line sample from the question, regex101 reports 13 steps for my solution and 125 steps for yours.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407123#M117606</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-28T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407124#M117607</link>
      <description>&lt;P&gt;Oh it’s less efficient for sure.  I like it because it opens the user’s eyes to reverse and forward lookups etc.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407124#M117607</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-28T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a regex domain to not include "@" and terminate capture before "&gt;"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407125#M117608</link>
      <description>&lt;P&gt;thanks, I will check it out&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-domain-to-not-include-quot-quot-and/m-p/407125#M117608</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-07-05T15:11:23Z</dc:date>
    </item>
  </channel>
</rss>

