- Subject: Re: [slang-users] PCRE and word boundary matching with non-US-ascii chars
- From: jed@xxxxxxxxxxx (John E. Davis)
- Date: Sun, 3 Jan 2016 13:11:27 -0500
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]