[haXe] RegExp Uft8 mode in Neko

Nickolay Artamonov teshca at tepkom.ru
Fri Aug 24 13:38:48 CEST 2007


I am running on Windows XP platform.

In addition, I want to say that this error occur at runtime,
when I use RegEx syntax like that 

var regExp = new EReg("\\W+", "gu");

but if I try to use that kind of syntax 

var regExp = ~/\W+/gu;

I get error at compile time. This is rather strange, because the compiler
doesn't know anything about library.


-Nickolay
-----Original Message-----
From: haxe-bounces at lists.motion-twin.com
[mailto:haxe-bounces at lists.motion-twin.com] On Behalf Of Nicolas Cannasse
Sent: Friday, August 24, 2007 2:52 PM
To: The haXe compiler list
Subject: Re: [haXe] RegExp Uft8 mode in Neko

Nickolay Artamonov a e'crit :
> Hi
> 
>  
> 
> I need to work with utf8 strings and regular expressions in Neko.
> 
> Here (http://nekovm.org/doc/view/regexp) I read about 'u' option.
> 
> But when I try to use this option I always get error:
> 
> "This version of PCRE is not compiled with PCRE_UTF8 support"

On which platform are you running ?

On Windows and OSX, PCRE is linked statically, so it's maybe not enabled
by default (and in that case I need to change that). On Linux platform,
Neko is using the libpcre library available on the system.

Nicolas

-- 
haXe - an open source web programming language
http://haxe.org




More information about the Haxe mailing list