Re: [pcre-dev] my 1st try to compil pcre.. need advice

Startseite
Nachricht löschen
Autor: Thierry Douez
Datum:  
To: pcre-dev
Betreff: Re: [pcre-dev] my 1st try to compil pcre.. need advice
Thanks Philip for the feedback,

Unfortunately, I'm stil stuck :(

Here is the 2 lines I added in the original config.h
(pcre: VERSION "8.33") :

#define SUPPORT_UCP 1

#define SUPPORT_UTF 1

....

and trying
     "(*UTF8)\w+(\s+)"
     "(*UTF)\w+(\s+)"
or  "(*UCP)\w+(\s+)"
doesn't match anything on  "abcdéfgh:      55"


​I've got problems so far only with Unicode/UTF ​values.

​Any other hint?

Regards,

Thierry​




2013/10/5 <ph10@???>

> 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