<?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 Regex expression correction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86458#M22051</link>
    <description>&lt;P&gt;I used (?i)location : (?P&lt;CURRENT_LOCATION&gt;.+) to extract the location. But it always extract the word below it (None). Anyone knows how to solve this ? I need to extract only Choa Chu Kang.&lt;/CURRENT_LOCATION&gt;&lt;/P&gt;

&lt;P&gt;My data is &lt;/P&gt;

&lt;P&gt;cloudCover : 0.75&lt;BR /&gt;
dewPoint: 21.42&lt;BR /&gt;
humidity: 54.00&lt;BR /&gt;
icon : partly-cloudy-day&lt;BR /&gt;
ozone : 274.19&lt;BR /&gt;
precipIntensity : 0.003&lt;BR /&gt;
precipProbability : 0.04&lt;BR /&gt;
precipType : rain&lt;BR /&gt;
pressure : 1007.45&lt;BR /&gt;
summary : Mostly Cloudy&lt;BR /&gt;
temperature: 31.68&lt;BR /&gt;
visibility : 6.21&lt;BR /&gt;
windBearing : 139&lt;BR /&gt;
windSpeed : 11.9&lt;BR /&gt;
psiAverage : 19&lt;BR /&gt;
latitude : 1.394557&lt;BR /&gt;
longitude : 103.746396&lt;BR /&gt;
location : Choa Chu Kang&lt;BR /&gt;
None&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jul 2013 15:27:43 GMT</pubDate>
    <dc:creator>kailun92</dc:creator>
    <dc:date>2013-07-07T15:27:43Z</dc:date>
    <item>
      <title>Regex expression correction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86458#M22051</link>
      <description>&lt;P&gt;I used (?i)location : (?P&lt;CURRENT_LOCATION&gt;.+) to extract the location. But it always extract the word below it (None). Anyone knows how to solve this ? I need to extract only Choa Chu Kang.&lt;/CURRENT_LOCATION&gt;&lt;/P&gt;

&lt;P&gt;My data is &lt;/P&gt;

&lt;P&gt;cloudCover : 0.75&lt;BR /&gt;
dewPoint: 21.42&lt;BR /&gt;
humidity: 54.00&lt;BR /&gt;
icon : partly-cloudy-day&lt;BR /&gt;
ozone : 274.19&lt;BR /&gt;
precipIntensity : 0.003&lt;BR /&gt;
precipProbability : 0.04&lt;BR /&gt;
precipType : rain&lt;BR /&gt;
pressure : 1007.45&lt;BR /&gt;
summary : Mostly Cloudy&lt;BR /&gt;
temperature: 31.68&lt;BR /&gt;
visibility : 6.21&lt;BR /&gt;
windBearing : 139&lt;BR /&gt;
windSpeed : 11.9&lt;BR /&gt;
psiAverage : 19&lt;BR /&gt;
latitude : 1.394557&lt;BR /&gt;
longitude : 103.746396&lt;BR /&gt;
location : Choa Chu Kang&lt;BR /&gt;
None&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2013 15:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86458#M22051</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-07-07T15:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression correction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86459#M22052</link>
      <description>&lt;P&gt;You could try something like this which is a bit more explicit.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?im)^location\s:\s(?P&amp;lt;current_location&amp;gt;[^\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Jul 2013 17:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86459#M22052</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2013-07-07T17:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression correction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86460#M22053</link>
      <description>&lt;P&gt;Thanks ! it works&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 00:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-expression-correction/m-p/86460#M22053</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-07-08T00:48:26Z</dc:date>
    </item>
  </channel>
</rss>

