<?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: Regex em Qliksense in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2504087#M61009</link>
    <description>&lt;P&gt;opa....agora é possivel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/regular-expressions-qlik-analytics.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/regular-expressions-qlik-analytics.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Feb 2025 20:07:27 GMT</pubDate>
    <dc:creator>afurtado</dc:creator>
    <dc:date>2025-02-02T20:07:27Z</dc:date>
    <item>
      <title>Regex em Qliksense</title>
      <link>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2037907#M60605</link>
      <description>&lt;P&gt;Boa tarde,&lt;/P&gt;
&lt;P&gt;Existe a possibilidade de se utilizar regex em qliksense? na internet só vi para qlikview. Encontrei esse link sobre Regex Connector,&amp;nbsp; mas não informações de como instalar ou utilizar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 18:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2037907#M60605</guid>
      <dc:creator>msludo</dc:creator>
      <dc:date>2023-02-14T18:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex em Qliksense</title>
      <link>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2041142#M60614</link>
      <description>&lt;P&gt;O Qlik Web Connectors pode ser baixado aqui.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/qlik-download/qwc-standalone/releases/download/v2.140.0/QlikWebConnectorsDecember2022.zip" target="_blank"&gt;https://github.com/qlik-download/qwc-standalone/releases/download/v2.140.0/QlikWebConnectorsDecember2022.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Há um script que pode ser utilizado para o Regex "[A-Z]*".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// That's the script code:
Inputdata:
LOAD * INLINE
  [
  ID, Customer name, Phone number, Birth date
  123ABC, Fred Flintstone, 555-1234, FDJKJR@#09-06-1949#jklgerwnt
  456DEF, Wilma Flintstone, 555-5678, .nmrewui93#05-01-1950#kmrem4324
  ABC123, Barney Rubble, 555-9101, bhjewri432#07-03-1948#kmtjertv325
  789GHI, Betty Rubble, 5551121, 324pfdskm#24-11-1947#nmn43jkj32fd
  ];

Cleandata:
LOAD
  ID,
  if(RegExTest([Phone number], '^\d{3}-\d{4}') = -1, 'Yes', 'No') as [Input phone number is valid], // Test if the phone number consists of three digits followed by a hyphen and four digits
  RegExReplace([Phone number], '^(\d{3})(\d{4})', '$1-$2') as [Cleaned phone number], // Insert a hyphen between the third and fourth digit, if it is not already there
  RegExReplace([Customer name], '^^(\w+)\s(\w+)', '$2, $1') as [Cleaned customer name], // Reformat the customer name in "Lastname, Firstname" format
  RegExFind([Birth date] , '\d{2}-\d{2}-\d{4}', ';') as [Cleaned birth date] // Extract the birth date (a string in the form of xx-xx-xxxx) from the unclean, raw data
RESIDENT Inputdata WHERE RegExTest(ID, '^\d{3}[A-Z]{3}');

// And you need to copy this VBScript code into the Macro-Editor (CTRL-M should open it in the sheet view).

Function RegExTest(iString, Pattern, IgnoreCase)
// Returns TRUE if Pattern can be matched to iString
// iString: string, the input string to search in
// Pattern: string, the regular expression pattern to search for
// IgnoreCase: boolean, indicates if search should be case-sensitive
  set RE = New RegExp
  RE.Pattern = Pattern
  RE.IgnoreCase = IgnoreCase
  RegExTest = RE.Test(iString)
End Function

Function RegExReplace(iString, sPattern, rPattern)
  // Replaces any occurence of sPattern within the string iString with rPattern
  // and returns the modified string, if no match is found the original string is returned
  // iString: string, the input string to search and replace in
  // sPattern: string, the pattern to search for
  // rPattern: string, the pattern to replace the found pattern with
  set RE = New RegExp
  RE.Pattern = sPattern
  RE.Global = True
  RegExReplace = RE.Replace(iString, rPattern)
End Function

Function RegExFind(iString, Pattern, Separator, IgnoreCase)
  // Returns a string containing the matches that were found by searching for Pattern in iString.
  // If more than 1 match was found, the results are separated by the character(s) specified in Separator
  // iString: string, the input string to search
  // Pattern: string, the pattern to search for
  // Separator: string, the character(s) to use for separating results
  // IgnoreCase: boolean, indicates if the search should be case-sensitive
  set RE = New RegExp
    RE.Pattern = Pattern
    RE.IgnoreCase = IgnoreCase
    RE.Global = True

    set Found = RE.Execute(iString)
    for i = 0 To Found.Count - 1
        Result = Result &amp;amp; Found(i).Value &amp;amp; Separator
    next
    RegExFind = left(Result, len(Result)-1)
End Function&lt;/LI-CODE&gt;
&lt;P&gt;Post Original.&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Regular-expression-A-Z/td-p/851408" target="_blank"&gt;Solved: Regular expression [A-Z] * - Qlik Community - 851408&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Don't worry, be Qlik.&lt;BR /&gt;Tonial&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 20:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2041142#M60614</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2023-02-22T20:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex em Qliksense</title>
      <link>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2504087#M61009</link>
      <description>&lt;P&gt;opa....agora é possivel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/regular-expressions-qlik-analytics.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/regular-expressions-qlik-analytics.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 20:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Regex-em-Qliksense/m-p/2504087#M61009</guid>
      <dc:creator>afurtado</dc:creator>
      <dc:date>2025-02-02T20:07:27Z</dc:date>
    </item>
  </channel>
</rss>

