Page 1 of 1

[Implemented] PCRE to be compiled with SUPPORT_UCP

Posted: Sun Sep 23, 2012 3:28 pm
by luis
To make caseless compare work for chars with a codepoint > 128

This should find a match but it doesn't (thanks Little John)

Code: Select all

If CreateRegularExpression(0, "(?i)someäöü")
   Dim Result$(0)
   a = ExtractRegularExpression(0, "This is for SOMEÄÖÜ test.", result$())
   Debug "Strings found: " + Str(a)
   For k = 0 To a-1
      Debug Result$(k)
   Next
EndIf
See this post -> http://www.purebasic.fr/english/viewtop ... 69#p389569

Re: PCRE to be compiled with SUPPORT_UTF8 and SUPPORT_UCP

Posted: Mon Sep 24, 2012 6:54 am
by Kukulkan
+1