<?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 Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788631#M278910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the problem, my data is coming in wrapped in square brackets, e.g. [www.google.com]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I remove the square brackets, either by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Removing the first and last character of a line in the loadscript?&lt;/P&gt;&lt;P&gt;2. Removing all '[' and ']' from my data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 12:49:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-29T12:49:16Z</dc:date>
    <item>
      <title>Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788631#M278910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the problem, my data is coming in wrapped in square brackets, e.g. [www.google.com]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I remove the square brackets, either by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Removing the first and last character of a line in the loadscript?&lt;/P&gt;&lt;P&gt;2. Removing all '[' and ']' from my data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 12:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788631#M278910</guid>
      <dc:creator />
      <dc:date>2015-01-29T12:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788632#M278911</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;Use below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurgeChar(Field,'[]') as New_Field&lt;/P&gt;&lt;P&gt;FROM datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei Kaliahin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 12:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788632#M278911</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-01-29T12:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788633#M278912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are multiple ways to achieve that, see examples below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Removing the first and last character of a line in the loadscript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. This will ignore the first and last character:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(Field,2,len(Field)-1) as Field&lt;/P&gt;&lt;P&gt;(...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. This will look for the brackets to get what's in between then:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textbetween(Field,'[',']') as Field&lt;/P&gt;&lt;P&gt;(...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Removing all '[' and ']' from my data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C. This will remove any occurence of brackets in any position:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PurgeChar(Field,'[]') as Field&lt;/P&gt;&lt;P&gt;(...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788633#M278912</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-01-29T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788634#M278913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788634#M278913</guid>
      <dc:creator />
      <dc:date>2015-01-29T13:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788635#M278914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788635#M278914</guid>
      <dc:creator />
      <dc:date>2015-01-29T13:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove First and Last Character in Loadscript OR Remove Two Characters from Loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788636#M278915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove first and last from field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(field, 2, len(field)-2)&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-First-and-Last-Character-in-Loadscript-OR-Remove-Two/m-p/788636#M278915</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-29T13:06:00Z</dc:date>
    </item>
  </channel>
</rss>

