<?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: Phone Numbers cleaning with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Phone-Numbers-cleaning-with-condition/m-p/2516552#M1226525</link>
    <description>&lt;P&gt;Would you mind explaining your question again?&lt;/P&gt;</description>
    <pubDate>Sat, 03 May 2025 17:32:43 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2025-05-03T17:32:43Z</dc:date>
    <item>
      <title>Phone Numbers cleaning with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Phone-Numbers-cleaning-with-condition/m-p/2516081#M1226517</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;got a column with phone numbers and used the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;KeepChar(Replace(Phone, 'O', '0'), '0123456789') AS %KEY_Phone_Bill&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;to remove special characters&lt;/P&gt;
&lt;P&gt;But I would also like to clean the country code, which is part of some but not all entries. This looks like this:&lt;/P&gt;
&lt;P&gt;0049170123456&lt;/P&gt;
&lt;P&gt;49170123456&lt;/P&gt;
&lt;P&gt;490170123456&lt;/P&gt;
&lt;P&gt;0170123456&lt;/P&gt;
&lt;P&gt;170123456&lt;/P&gt;
&lt;P&gt;The only correct way I would like to keep is 0170123456&lt;/P&gt;
&lt;P&gt;So I thought I check if the number begins with 00 oder 490 and replace them with 0. Could I use the replace() with $ or something that indicated I want only replace at the beginning of the string.&amp;nbsp;Or do I need to use regex?&lt;/P&gt;
&lt;P&gt;2nd step I would check if any string does not start with a 0, so place a 0 in front of the string.&lt;/P&gt;
&lt;P&gt;Or is there an easier way to do this?&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 08:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Phone-Numbers-cleaning-with-condition/m-p/2516081#M1226517</guid>
      <dc:creator>CeeJay</dc:creator>
      <dc:date>2025-04-29T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Phone Numbers cleaning with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Phone-Numbers-cleaning-with-condition/m-p/2516552#M1226525</link>
      <description>&lt;P&gt;Would you mind explaining your question again?&lt;/P&gt;</description>
      <pubDate>Sat, 03 May 2025 17:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Phone-Numbers-cleaning-with-condition/m-p/2516552#M1226525</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2025-05-03T17:32:43Z</dc:date>
    </item>
  </channel>
</rss>

