On Fri, 4 Oct 2013, Thierry Douez wrote:

> RE:                     "(*UCP)^\w+\K:\s+\d+"
> SUBJECT:          "abcdéfgh:      55"
> REPLACETEXT: "(Ok)"
> 
> RESULT:              abcdéfgh(Ok)
> 
> The first always works.
> The second has a 'e' with an accent in the middle of the subject
> and I can't manage to make it work.
> 
> In config.h, if I set:
> 
> #define SUPPORT_UCP 1
> 
> the regex is fine (no error) but doesn't match.
> 
> If  #undef SUPPORT_UCP
> then I get an error in the regex.
> 
> Is there something else I have to do in config.h ?
> Or do I miss the obvious?

You need to set (*UTF) as well as (*UCP).

Philip

-- 
Philip Hazel
-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to