<?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: Rex to Exclude + Sign in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252150#M75420</link>
    <description>&lt;P&gt;Hi gcato, if you would like to change your comment to an answer I can accept this for you.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Sun, 29 Nov 2015 15:42:05 GMT</pubDate>
    <dc:creator>chrisprodger</dc:creator>
    <dc:date>2015-11-29T15:42:05Z</dc:date>
    <item>
      <title>Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252144#M75414</link>
      <description>&lt;P&gt;I wonder whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;I'm trying to extract the text "Comapred to previous years almost a pleasure to use" from the raw data as shown below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;feedback-comments=Compared+to+previous+years+almost+a+pleasure+to+use&amp;amp;isJavascript
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried the following regex, which does extract the text but this includes the '+' sign.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;feedback-comments=(?&amp;lt;comments&amp;gt;[^[]+)\&amp;amp;isJavascript
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could someone possibly tell me please how I would be able to write this so the '+' signs are excluded.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 06:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252144#M75414</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-27T06:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252145#M75415</link>
      <description>&lt;P&gt;You can use the rex command in sed mode.  Here's a run anywhere example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats c as feedback-comments |eval feedback-comments="Compared+to+previous+years+almost+a+pleasure+to+use&amp;amp;isJavascript"
| rex field="feedback-comments" "(?&amp;lt;comments&amp;gt;[^&amp;amp;]+)" |rex mode=sed field="comments" "s/\+/ /g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 09:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252145#M75415</guid>
      <dc:creator>gcato</dc:creator>
      <dc:date>2015-11-27T09:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252146#M75416</link>
      <description>&lt;P&gt;Hi @gcato thank you for this, but unfortunately this doesn't extract any of the information.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 10:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252146#M75416</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-27T10:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252147#M75417</link>
      <description>&lt;P&gt;@gcato's answer works for me.  You only need the &lt;CODE&gt;rex&lt;/CODE&gt; commands in your search.  If it's not doing what you expect then please clarify your needs.  For instance, to eliminate plus signs instead of replacing them with spaces use &lt;CODE&gt;rex mode=sed field="comments" "s/\+//g"&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 13:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252147#M75417</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-11-27T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252148#M75418</link>
      <description>&lt;P&gt;Ah that was it, thank you for coming back to me with this.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 14:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252148#M75418</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-27T14:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252149#M75419</link>
      <description>&lt;P&gt;If your problem is solved, please accept the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 15:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252149#M75419</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-11-27T15:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rex to Exclude + Sign</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252150#M75420</link>
      <description>&lt;P&gt;Hi gcato, if you would like to change your comment to an answer I can accept this for you.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2015 15:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-to-Exclude-Sign/m-p/252150#M75420</guid>
      <dc:creator>chrisprodger</dc:creator>
      <dc:date>2015-11-29T15:42:05Z</dc:date>
    </item>
  </channel>
</rss>

