<?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 How to escape the &amp;quot;\&amp;quot; escape character itself? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-escape-the-quot-quot-escape-character-itself/m-p/592356#M6938</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'm trying to use the replace command in XQL to replace the "\" escape character and have so success.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When I tried with the double slash \\, the XQL will raise syntax error.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| alter test2 = replace(to_json_string(data), "\\", "")&lt;/LI-CODE&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;["{\"ActionType\":\"Forward\",\"Recipients\":[\"john.doe@domain.com\"],\"ForwardFlags\":\"None\"}"]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Expected output:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;["{"ActionType":"Forward","Recipients":["john.doe@domain.com"],"ForwardFlags":"None"}"]&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 02:36:56 GMT</pubDate>
    <dc:creator>Antony_Chan</dc:creator>
    <dc:date>2024-07-18T02:36:56Z</dc:date>
    <item>
      <title>How to escape the "\" escape character itself?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-escape-the-quot-quot-escape-character-itself/m-p/592356#M6938</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'm trying to use the replace command in XQL to replace the "\" escape character and have so success.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When I tried with the double slash \\, the XQL will raise syntax error.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| alter test2 = replace(to_json_string(data), "\\", "")&lt;/LI-CODE&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;["{\"ActionType\":\"Forward\",\"Recipients\":[\"john.doe@domain.com\"],\"ForwardFlags\":\"None\"}"]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Expected output:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;["{"ActionType":"Forward","Recipients":["john.doe@domain.com"],"ForwardFlags":"None"}"]&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 02:36:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-escape-the-quot-quot-escape-character-itself/m-p/592356#M6938</guid>
      <dc:creator>Antony_Chan</dc:creator>
      <dc:date>2024-07-18T02:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape the "\" escape character itself?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-escape-the-quot-quot-escape-character-itself/m-p/592385#M6947</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/202190"&gt;@Antony_Chan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The backslash is an escape character - we have to use triple quotes and double backslash to handle it. Please try and let me know if that works. Or kindly share your use case and sample query to have a look.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ashutosh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 07:15:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/how-to-escape-the-quot-quot-escape-character-itself/m-p/592385#M6947</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2024-07-18T07:15:40Z</dc:date>
    </item>
  </channel>
</rss>

