<?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 do I remove a double inverted comma from a value? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403504#M9750</link>
    <description>&lt;P&gt;EDIT: I fixed the code to use the code tags, so it should come across now.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 14:30:31 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2018-11-26T14:30:31Z</dc:date>
    <item>
      <title>How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403502#M9748</link>
      <description>&lt;P&gt;I have to remove a double inverted comma from a value.&lt;/P&gt;

&lt;P&gt;Query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(.Item=(?[^\,]+))"| rex "(.Reserved1=(?[^\,]+))" | rex "(.Reserved2=(?[^\,]+))" | rex "(.Type=(?[^\,]+))" | rex field=_raw "\d+\-\d+\-\d+\s+\d+\:\d+\:\d+\.\d+\,\s+\w+.*(?\"\d+\.\d+\")\,\s+\w+\s+.*"
|rex field=_raw "\d+\-\d+\-\d+\s+\d+\:\d+\:\d+\.\d+\,\s+\w+.*(?\"\d+\.\d+\")\,\s+\w+\s+.*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to remove the double inverted comma from value below. I have written the above query, but the double inverted comma is not getting removed.&lt;/P&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Line_Item            “TFT Details Member” 
LG_Reserved1      “000000 “  
LG_Reserved2      “0000”  
Balance_Test         “Test“ 
Balance_Entered   “1238996555” 
Balance_Test         “8487347327473”
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Nov 2018 13:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403502#M9748</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-11-26T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403503#M9749</link>
      <description>&lt;P&gt;Can you please edit your question and post your code as code (using the 101010 button in the editor toolbar). Now it seems certain special characters are missing from your regular expressions.&lt;/P&gt;

&lt;P&gt;In general it is not entirely clear looking at the rex commands your provide and the sample data, how these two align and what exact code is your attempt to remove the double quotes.&lt;/P&gt;

&lt;P&gt;I believe there are multiple actual characters to represent ", so make sure you use the correct one.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403503#M9749</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-26T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403504#M9750</link>
      <description>&lt;P&gt;EDIT: I fixed the code to use the code tags, so it should come across now.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403504#M9750</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-26T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403505#M9751</link>
      <description>&lt;P&gt;I was able to find out answer but still two field are remaining Balance_Entered &amp;amp; Balance_Test &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "\d+\-\d+\-\d+\s+\d+\:\d+\:\d+\.\d+\,\s+\w+.*(?&amp;lt;Balance_Entered&amp;gt;\"\d+\.\d+\")\,\s+\w+\s+.*"
|rex field=_raw "\d+\-\d+\-\d+\s+\d+\:\d+\:\d+\.\d+\,\s+\w+.*(?&amp;lt;Balance_Test&amp;gt;\"\d+\.\d+\")\,\s+\w+\s+.*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I got the answer below is the query but still last two fields &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Balance_Entered “1238996555”
Balance_Test “8487347327473”
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403505#M9751</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2020-09-29T22:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403506#M9752</link>
      <description>&lt;P&gt;You should be able to move those quote marks outside the capture group.&lt;/P&gt;

&lt;P&gt;The capture group is &lt;CODE&gt;(?&amp;lt;Balance_Test&amp;gt;\"\d+\.\d+\")&lt;/CODE&gt; so move the quotes outside, like &lt;CODE&gt;\"(?&amp;lt;Balance_Test&amp;gt;\d+\.\d+)\"&lt;/CODE&gt;.  Repeat with Balance_Entered.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403506#M9752</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-26T15:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403507#M9753</link>
      <description>&lt;P&gt;Also EDIT: I fixed the non-code to not use the code tags, so it looks better.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403507#M9753</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-26T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403508#M9754</link>
      <description>&lt;P&gt;Apart from any characters that had already disappeared like anything between &lt;CODE&gt;&amp;lt;&amp;gt;&lt;/CODE&gt;. @maheshsat needs to really repost it himself. As he did in the answer below.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403508#M9754</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-26T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403509#M9755</link>
      <description>&lt;P&gt;Its workes Thanks really appreciate Rich&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403509#M9755</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-11-26T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403510#M9756</link>
      <description>&lt;P&gt;This still doesn't make a whole lot of sense to me. Your regex to capture those 2 fields says &lt;CODE&gt;\"\d+\.\d+\"&lt;/CODE&gt; so double quote, followed by numbers, followed by a dot, followed by more numbers, followed by a double quote.&lt;/P&gt;

&lt;P&gt;That doesn't line up with the data you are showing (data doesn't include any dots) and it also doesn't make sense to capture the double quotes if that was the thing you wanted to get rid of.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403510#M9756</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-26T15:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403511#M9757</link>
      <description>&lt;P&gt;Can you reply your answer again , I have to accept your answer&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403511#M9757</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-11-26T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a double inverted comma from a value?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403512#M9758</link>
      <description>&lt;P&gt;Is this still an issue?&lt;/P&gt;

&lt;P&gt;If I were you, I would head to regex101.com, paste into the bottom a couple of your events where this data is. &lt;BR /&gt;
 Then on the top, start with your first piece of your regex: &lt;CODE&gt;\d+&lt;/CODE&gt;, see how it matches, then keep adding in the above until you find where it breaks or does the wrong thing.  It's a methodical way to uncover small mistakes, and also helps a lot in understanding your regex.&lt;/P&gt;

&lt;P&gt;Or post a handful of those events in here and we can match them for you.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 13:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-remove-a-double-inverted-comma-from-a-value/m-p/403512#M9758</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-12-02T13:15:54Z</dc:date>
    </item>
  </channel>
</rss>

