<?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: Pearl  question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164687#M42709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will depend on your session encoding for whether it will work or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session Encoding = latin1, will work.&amp;nbsp; If you have session encoding = utf-8, it will NOT work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 20:39:08 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2014-11-10T20:39:08Z</dc:date>
    <item>
      <title>Pearl  question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164684#M42706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;BR /&gt;I&amp;nbsp; got&amp;nbsp; my&amp;nbsp; nice&amp;nbsp; regex &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;PRXMATCH(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;"/^¬[A-Z0-9 '.,-]{8,40}¬¬[A-Z'.,-]{2,40}/"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;,DIRETI2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;There&amp;nbsp; is one&amp;nbsp; record&amp;nbsp; where&amp;nbsp; DIRETI2&amp;nbsp; I has&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;¬01210 BRUXELLES¬¬BÉLGICA&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;It&amp;nbsp; doesn't&amp;nbsp; match because&amp;nbsp; I got an&amp;nbsp; accent...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;Is there&amp;nbsp; an&amp;nbsp; elegant&amp;nbsp; way&amp;nbsp; to include accents?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: CA; mso-bidi-language: AR-SA; mso-bidi-font-family: 'Times New Roman';"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 19:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164684#M42706</guid>
      <dc:creator>car</dc:creator>
      <dc:date>2014-11-10T19:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pearl  question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164685#M42707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Perl itself I there is a metacharacter \p{L} which matches a alphabetical character in 'any' language, however, it is not available in SAS.&amp;nbsp; Your options would be to trantab the input or to add the acceptable non-ascii characters to your regular expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;input DIRETI2 $80.;&lt;/P&gt;&lt;P&gt;rc=PRXMATCH("/^¬[A-Z0-9 '.,-]{8,40}¬¬[A-ZáéíóúÁÉÍüÓÚâêÄîôßûÂÊÎÔÛäüöÄÜÖýµäöü'.,-]{2,40}/",DIRETI2);&lt;/P&gt;&lt;P&gt;put direti2= rc=;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;¬01210 BRUXELLES¬¬BÉLGICA&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 20:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164685#M42707</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-11-10T20:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pearl  question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164686#M42708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Character Class Groupings is what you might be looking for: &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p0s9ilagexmjl8n1u7e1t1jfnzlk.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p0s9ilagexmjl8n1u7e1t1jfnzlk.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also: Make sure to mask a '.' as else is has the meaning of a wildcard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DIRETI2='¬01210 BRUXELLES¬¬BÉLGICA';&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc1=PRXMATCH("/^¬[A-Z0-9 '.,-]{8,40}¬¬[A-Z'.,-]{2,40}/",DIRETI2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc2=PRXMATCH("/^¬[[:alnum:] '\.,-]{8,40}¬¬[[:alpha:]'\.,-]{2,40}/o",DIRETI2);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 20:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164686#M42708</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-11-10T20:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pearl  question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164687#M42709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will depend on your session encoding for whether it will work or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session Encoding = latin1, will work.&amp;nbsp; If you have session encoding = utf-8, it will NOT work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 20:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164687#M42709</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-11-10T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pearl  question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164688#M42710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose&amp;nbsp; our enconding is&amp;nbsp; latin1.&lt;/P&gt;&lt;P&gt;PRXMATCH("/^¬[[:alnum:] '\.,-]{8,40}¬¬[[:alpha:]'\.,-]{2,40}/o",DIRETI2);&lt;/P&gt;&lt;P&gt;Works&amp;nbsp; fine for me.&amp;nbsp;&amp;nbsp; No more issues&amp;nbsp; with accents.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 18:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pearl-question/m-p/164688#M42710</guid>
      <dc:creator>car</dc:creator>
      <dc:date>2014-11-11T18:45:53Z</dc:date>
    </item>
  </channel>
</rss>

