[Implemented] PCRE to be compiled with SUPPORT_UCP

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

[Implemented] PCRE to be compiled with SUPPORT_UCP

Post 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
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: PCRE to be compiled with SUPPORT_UTF8 and SUPPORT_UCP

Post by Kukulkan »

+1
Post Reply