<?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>question ReplaceText Processor not processing all Expresssion Language in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-Processor-not-processing-all-Expresssion/m-p/189290#M151383</link>
    <description>&lt;P&gt;
	Hi,&lt;/P&gt;&lt;P&gt;
	I want to use the replace text processor to replace some text. Main goals is to escape JSON, however, it seems that both escapeJson() and replaceText() don't work. Other expressions (like notNull and substring) do seem to work.&lt;/P&gt;&lt;P&gt;
	The replaceText processor has the following settings configured:&lt;/P&gt;&lt;UL&gt;
	
&lt;LI&gt;Search value: (?s)(^.*$)&lt;/LI&gt;	
&lt;LI&gt;Replacement value: ${'$1':escapeJson()}&lt;/LI&gt;	
&lt;LI&gt;Replacement strategy: Regex replace&lt;/LI&gt;	
&lt;LI&gt;Evaluation mode: Entire text&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
	I noticed that when I use the notNull() expression, it replaces the text with True, and when i use substring(0, 5) it gives me the first 5 characters. However, when using escapeJson() or replace('"', '\\"') it doesn't replace quotes or slashes.&lt;/P&gt;&lt;P&gt;
	An example text value that I used:&lt;/P&gt;&lt;PRE&gt;https 2018-03-18T23:55:36.990541Z app/abc-pxx-p001/abc123 12.34.56.78:12345 87.65.43.21:80 0.000 0.092 0.000 200 200 1124 364 "GET &lt;A href="https://mysite.nl:443/test" target="_blank"&gt;https://mysite.nl:443/test&lt;/A&gt; HTTP/1.1" "abc/1 CFN/987 Darwin/12.3.4" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 arn:aws:elasticloadbalancing:eu-west-1:012345679:targetgroup/abc-external-abc-de/abc123def456 "Root=1-5a-d2a18df071c" "mysite.nl" "session-reused" 0&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Mar 2018 19:03:07 GMT</pubDate>
    <dc:creator>xlammertink</dc:creator>
    <dc:date>2018-03-19T19:03:07Z</dc:date>
  </channel>
</rss>

