<?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 Re: 'ReplaceText&amp;quot; processor does not replace special characters as a &amp;quot;Replacement Value&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171547#M133844</link>
    <description>&lt;P&gt;Rather than using \u0001 can you try \cA for the control A character? 
Reference : &lt;A href="http://www.regular-expressions.info/nonprint.html"&gt;http://www.regular-expressions.info/nonprint.html&lt;/A&gt;
"Many regex flavors also support the tokens \cA through \cZ to insert ASCII control characters. The letter after the backslash is always a lowercase c. The second letter is an uppercase letter A through Z, to indicate Control+A through Control+Z. These are equivalent to \x01 through \x1A (26 decimal). E.g. \cM matches a carriage return, just like \r, \x0D, and \u000D. Most flavors allow the second letter to be lowercase, with no difference in meaning. Only &lt;A href="http://www.regular-expressions.info/java.html"&gt;Java&lt;/A&gt; requires the A to Z to be uppercase."&lt;/P&gt;</description>
    <pubDate>Sat, 12 Nov 2016 00:43:41 GMT</pubDate>
    <dc:creator>arunak</dc:creator>
    <dc:date>2016-11-12T00:43:41Z</dc:date>
    <item>
      <title>'ReplaceText" processor does not replace special characters as a "Replacement Value"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171544#M133841</link>
      <description>&lt;P&gt;I have a 'Control A' separated file. I am trying to append each line with a date value with the regular expression,&lt;/P&gt;&lt;P&gt;${srcdelim}${now():format('mm-dd-yy')}&lt;/P&gt;&lt;P&gt;where ${srcdelim} contains the value '\u0001' from a schema file.&lt;/P&gt;&lt;P&gt;Apparently, the output file contains the string \u0001 rather than a control A delimiter.&lt;/P&gt;&lt;P&gt;I have attached my sample input and output.&lt;/P&gt;&lt;P&gt;Character Set: UTF-8&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 18:33:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171544#M133841</guid>
      <dc:creator>rbalakrishnantc</dc:creator>
      <dc:date>2016-11-10T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'ReplaceText" processor does not replace special characters as a "Replacement Value"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171545#M133842</link>
      <description>&lt;P&gt;Could you include a sample of two records?  Please update your question with the sample.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 21:42:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171545#M133842</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-11-10T21:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'ReplaceText" processor does not replace special characters as a "Replacement Value"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171546#M133843</link>
      <description>&lt;P&gt;is this UTF-8?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:05:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171546#M133843</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-11-11T01:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'ReplaceText" processor does not replace special characters as a "Replacement Value"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171547#M133844</link>
      <description>&lt;P&gt;Rather than using \u0001 can you try \cA for the control A character? 
Reference : &lt;A href="http://www.regular-expressions.info/nonprint.html"&gt;http://www.regular-expressions.info/nonprint.html&lt;/A&gt;
"Many regex flavors also support the tokens \cA through \cZ to insert ASCII control characters. The letter after the backslash is always a lowercase c. The second letter is an uppercase letter A through Z, to indicate Control+A through Control+Z. These are equivalent to \x01 through \x1A (26 decimal). E.g. \cM matches a carriage return, just like \r, \x0D, and \u000D. Most flavors allow the second letter to be lowercase, with no difference in meaning. Only &lt;A href="http://www.regular-expressions.info/java.html"&gt;Java&lt;/A&gt; requires the A to Z to be uppercase."&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 00:43:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171547#M133844</guid>
      <dc:creator>arunak</dc:creator>
      <dc:date>2016-11-12T00:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: 'ReplaceText" processor does not replace special characters as a "Replacement Value"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171548#M133845</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13945/rbalakrishnantce.html" nodeid="13945" target="_blank"&gt;@bala krishnan &lt;/A&gt; &lt;/P&gt;&lt;P&gt;It works for me when I set Replacement Strategy to "Literal Replace":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9753-screen-shot-2016-11-23-at-15440-pm.png" style="width: 980px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20054i89B679D2D3C4FE13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9753-screen-shot-2016-11-23-at-15440-pm.png" alt="9753-screen-shot-2016-11-23-at-15440-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my input file has &lt;EM&gt;control-a&lt;/EM&gt; (but no \001) and my output file has &lt;EM&gt;control-a&lt;/EM&gt; followed by &lt;EM&gt;test&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;When I use the default Replacement Value ("Regex Replace") my output file has &lt;EM&gt;\001test&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:39:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ReplaceText-quot-processor-does-not-replace-special/m-p/171548#M133845</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2019-08-18T10:39:27Z</dc:date>
    </item>
  </channel>
</rss>

