<?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: Need help with regex to extract &amp;quot;error&amp;quot; from &amp;quot;url :/test.com/error.html&amp;quot; in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354354#M104899</link>
    <description>&lt;P&gt;If you want white space on either end, then you need anchors.  Try &lt;CODE&gt;(?i)^\s+error\s+$&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 21:46:42 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-11-07T21:46:42Z</dc:date>
    <item>
      <title>Need help with regex to extract "error" from "url :/test.com/error.html"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354351#M104896</link>
      <description>&lt;P&gt;How to capture only word that has white the start and end : -&lt;/P&gt;

&lt;P&gt;1) ERROR &lt;BR /&gt;
2) url :/test.com/error.html&lt;BR /&gt;
3) this is my error 2 &lt;BR /&gt;
4) this is my error3 &lt;/P&gt;

&lt;P&gt;Output &lt;BR /&gt;
1 only &lt;/P&gt;

&lt;P&gt;Search base  | regex "\bERROR\b"  didnt work &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 17:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354351#M104896</guid>
      <dc:creator>jw44250</dc:creator>
      <dc:date>2017-11-07T17:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with regex to extract "error" from "url :/test.com/error.html"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354352#M104897</link>
      <description>&lt;P&gt;@jw44250, please explain your query again as it is confusing. From the subject of question seems like you need to extract word error from partial URL, however, in your Output you have listed that only 1st option should be selected.&lt;/P&gt;

&lt;P&gt;Also what do you mean by  &lt;CODE&gt;only word that has white the start and end&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354352#M104897</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-07T18:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with regex to extract "error" from "url :/test.com/error.html"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354353#M104898</link>
      <description>&lt;P&gt;Hi @jw44250&lt;/P&gt;

&lt;P&gt;I'm a little confused on what your expected output is.  &lt;/P&gt;

&lt;P&gt;If it's only line 1 then &lt;CODE&gt;| regex "\bERROR\b"&lt;/CODE&gt; should work for.  Can you post the output you're getting?&lt;/P&gt;

&lt;P&gt;If you're looking for any error "that has white the start and end" (lines 1 and 2) then you'll need something like &lt;CODE&gt;| regex "(?i)\bERROR\b"&lt;/CODE&gt; where (?i) makes the regex case-insensitive.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 19:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354353#M104898</guid>
      <dc:creator>LCM_BRogerson</dc:creator>
      <dc:date>2017-11-07T19:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with regex to extract "error" from "url :/test.com/error.html"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354354#M104899</link>
      <description>&lt;P&gt;If you want white space on either end, then you need anchors.  Try &lt;CODE&gt;(?i)^\s+error\s+$&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 21:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-regex-to-extract-quot-error-quot-from-quot-url/m-p/354354#M104899</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-11-07T21:46:42Z</dc:date>
    </item>
  </channel>
</rss>

