slang-users mailing list

[2016 Date Index] [2016 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] PCRE and word boundary matching with non-US-ascii chars


Morten Bo Johansen <mbj@xxxxxxxxxxx> wrote:
> Is there something wrong with my pcre_replace function or am I
> overlooking something else?

I think that you will need to tell the PCRE compiler that the pattern
contains unicode:

   pat = pcre_compile (pat, 0x20000000|PCRE_UTF8);

Here, 0x20000000 is the value of PCRE_UCP.  Evidently, this option was
added after I wrote the module.  I will update the module with this
symbol and the others that have been added.

Thanks,
--John
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.


[2016 date index] [2016 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]