<?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: problem with replace text in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-with-replace-text/m-p/187996#M73518</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/23208/hadoopuserhadoop.html" nodeid="23208" target="_blank"&gt;@Mark&lt;/A&gt;&lt;P&gt;I have tried with &lt;STRONG&gt;same configurations as you mentioned in the question in extract text and in replace text processors&lt;/STRONG&gt;, The output flowfile contents from replace text processor &lt;STRONG&gt;resulting with \&lt;/STRONG&gt; in it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50381-output.png" style="width: 1421px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18678i39DD7D89711A4E90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50381-output.png" alt="50381-output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my configurations:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Extract Text:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50382-extracttext.png" style="width: 1249px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18679i72D5029B7AF87AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50382-extracttext.png" alt="50382-extracttext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output from extract text processor:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50383-extracttext-output.png" style="width: 1133px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18680iEF8E3154D92693F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50383-extracttext-output.png" alt="50383-extracttext-output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;abc attribute value having \ in it&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Replace Text:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;As R&lt;/U&gt;egex Replace as Replacement Strategy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50384-replacetext.png" style="width: 1318px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18681i2116031CC188199B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50384-replacetext.png" alt="50384-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(Or)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replacement Strategy as Always Replace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50385-replacetext.png" style="width: 1647px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18682i959F6994D51DAA23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50385-replacetext.png" alt="50385-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Both of these Replacement strategies are resulting same output that i mentioned as first screenshot.&lt;/P&gt;&lt;P&gt;Once check the attribute abc value after Extract Text processor having \ in it or not.&lt;/P&gt;&lt;P&gt;If you still having issue then share your flow and configs of the processors please..&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 07:57:42 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T07:57:42Z</dc:date>
    <item>
      <title>problem with replace text</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-with-replace-text/m-p/187995#M73517</link>
      <description>&lt;P&gt;I am using extract text with replace text as below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original string:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;_fwip="abc" new fwip in context as new_fwip="[This is \"new_fwip\""] and other text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;extract text properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;abc: (_fwip.*")\]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;replace text properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;search value: &lt;/STRONG&gt;.*&lt;/P&gt;&lt;P&gt;replace value: ${abc.1}&lt;/P&gt;&lt;P&gt;I am getting the value &lt;/P&gt;&lt;P&gt;_fwip="abc" new fwip in context as new_fwip="[This is "new_fwip""&lt;/P&gt;&lt;P&gt;In the replaced text I am missing \.&lt;/P&gt;&lt;P&gt;Can you please help me to understand why I am missing \&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-with-replace-text/m-p/187995#M73517</guid>
      <dc:creator>mark_hadoop</dc:creator>
      <dc:date>2018-01-15T20:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem with replace text</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-with-replace-text/m-p/187996#M73518</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/23208/hadoopuserhadoop.html" nodeid="23208" target="_blank"&gt;@Mark&lt;/A&gt;&lt;P&gt;I have tried with &lt;STRONG&gt;same configurations as you mentioned in the question in extract text and in replace text processors&lt;/STRONG&gt;, The output flowfile contents from replace text processor &lt;STRONG&gt;resulting with \&lt;/STRONG&gt; in it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50381-output.png" style="width: 1421px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18678i39DD7D89711A4E90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50381-output.png" alt="50381-output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my configurations:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Extract Text:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50382-extracttext.png" style="width: 1249px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18679i72D5029B7AF87AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50382-extracttext.png" alt="50382-extracttext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output from extract text processor:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50383-extracttext-output.png" style="width: 1133px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18680iEF8E3154D92693F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50383-extracttext-output.png" alt="50383-extracttext-output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;abc attribute value having \ in it&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Replace Text:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;As R&lt;/U&gt;egex Replace as Replacement Strategy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50384-replacetext.png" style="width: 1318px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18681i2116031CC188199B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50384-replacetext.png" alt="50384-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(Or)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replacement Strategy as Always Replace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="50385-replacetext.png" style="width: 1647px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18682i959F6994D51DAA23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="50385-replacetext.png" alt="50385-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Both of these Replacement strategies are resulting same output that i mentioned as first screenshot.&lt;/P&gt;&lt;P&gt;Once check the attribute abc value after Extract Text processor having \ in it or not.&lt;/P&gt;&lt;P&gt;If you still having issue then share your flow and configs of the processors please..&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:57:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-with-replace-text/m-p/187996#M73518</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T07:57:42Z</dc:date>
    </item>
  </channel>
</rss>

