<?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 can we replace one ' with two ' (chr(39))? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780315#M1043603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure these are the most genius expressions ever in the history of all qlikview script.&amp;nbsp; 185 IQs for sure!&amp;nbsp; Gysbert should be in awe of this string.&amp;nbsp; Both answers are correct, I could only stamp the first one correct and the second one helpful.&amp;nbsp; Thanks, you all are great. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 23:37:13 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2014-12-04T23:37:13Z</dc:date>
    <item>
      <title>how can we replace one ' with two ' (chr(39))?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780312#M1043599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a colleague is dealing with apostrophes in some text strings and we're stumped about how to replace a single apostrophe with two apostrophes (not a double quotation mark, two apostrophes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The character in question is chr(39), we're just stumped on how to have it replace only cases where an apostrophe appears by itself with two apostrophes.&amp;nbsp; (Please don't ask why. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 21:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780312#M1043599</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-12-04T21:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can we replace one ' with two ' (chr(39))?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780313#M1043600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution to only replace single apostrophes with double apostrophes while leaving double apostrophes untouched could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_144734_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/72772_QlikCommunity_Thread_144734_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14177337778742974 jive_macro_code" jivemacro_uid="_14177337778742974"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replace(Replace(Text,chr(39),chr(39)&amp;amp;chr(39)),chr(39)&amp;amp;chr(39)&amp;amp;chr(39)&amp;amp;chr(39),chr(39)&amp;amp;chr(39)) as Text2&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABCDEFG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "A'BCDEFG"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ABC''DEFG"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "AB''CDE'FG"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ABC''DEF'G"&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780313#M1043600</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-04T22:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: how can we replace one ' with two ' (chr(39))?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780314#M1043602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace(&lt;/P&gt;&lt;P&gt;replace(&lt;/P&gt;&lt;P&gt;replace(Text, chr(39)&amp;amp;chr(39), '@@'), &lt;/P&gt;&lt;P&gt;&amp;nbsp; chr(39), chr(39)&amp;amp;chr(39)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; '@@', chr(39)&amp;amp;chr(39))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 23:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780314#M1043602</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-12-04T23:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: how can we replace one ' with two ' (chr(39))?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780315#M1043603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure these are the most genius expressions ever in the history of all qlikview script.&amp;nbsp; 185 IQs for sure!&amp;nbsp; Gysbert should be in awe of this string.&amp;nbsp; Both answers are correct, I could only stamp the first one correct and the second one helpful.&amp;nbsp; Thanks, you all are great. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 23:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-we-replace-one-with-two-chr-39/m-p/780315#M1043603</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-12-04T23:37:13Z</dc:date>
    </item>
  </channel>
</rss>

