<?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: Regular Expression for field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575992#M200729</link>
    <description>&lt;P&gt;Please provide the SPL you are using (in a code &amp;lt;/&amp;gt; block preferably)&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 09:05:47 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-11-23T09:05:47Z</dc:date>
    <item>
      <title>Regular Expression for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575979#M200721</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;i got two URLs which i want to represent in one regex group. The dest Port (443) will be in a seperate group&lt;/P&gt;&lt;P&gt;Here are two examples.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;my.url.is.here:443&lt;/P&gt;&lt;P&gt;&lt;A href="http://myurl.de/tasks/search/home?" target="_blank" rel="noopener"&gt;http://myurl.de/tasks/search/home?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i use the following regex "(?&amp;lt;url&amp;gt;[^\s:]+):?" the first example is fine, but the second only catches "http" because it only matches till the ":"&lt;BR /&gt;&lt;BR /&gt;Can someone help and fix my regex?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 08:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575979#M200721</guid>
      <dc:creator>brennson90</dc:creator>
      <dc:date>2021-11-23T08:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575982#M200724</link>
      <description>&lt;P&gt;If you don't mind losing the ?, you could use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"(?&amp;lt;url&amp;gt;.+)(:\d|\?)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 08:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575982#M200724</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-23T08:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575988#M200727</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; thx for the reply. Now the first number of the dest port is lost.&lt;/P&gt;&lt;P&gt;It captures everything till "my.url.is.here:4"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 08:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575988#M200727</guid>
      <dc:creator>brennson90</dc:creator>
      <dc:date>2021-11-23T08:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575992#M200729</link>
      <description>&lt;P&gt;Please provide the SPL you are using (in a code &amp;lt;/&amp;gt; block preferably)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575992#M200729</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-23T09:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575997#M200731</link>
      <description>&lt;P&gt;I'm not 100% sure what you want to see.&lt;/P&gt;&lt;P&gt;This is my search&lt;/P&gt;&lt;P&gt;index=mysearch&lt;BR /&gt;|&amp;nbsp; rex "\s(?&amp;lt;url&amp;gt;.+)(:\d|\?)(?&amp;lt;dest_port&amp;gt;\d+)?\s+"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/575997#M200731</guid>
      <dc:creator>brennson90</dc:creator>
      <dc:date>2021-11-23T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression for field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/576015#M200735</link>
      <description>&lt;P&gt;Hi, i found the solution "(?&amp;lt;url&amp;gt;.+)(:|\?)"&lt;/P&gt;&lt;P&gt;Anyways, thanks for the support &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:31:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-Expression-for-field-extraction/m-p/576015#M200735</guid>
      <dc:creator>brennson90</dc:creator>
      <dc:date>2021-11-23T12:31:07Z</dc:date>
    </item>
  </channel>
</rss>

