Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2008-08-08 04:48:38


John Maddock wrote:
>> gj_uestc wrote:
>>>> Hi,all
>>>> Nowadays I am using boost:u32regex to do some regular expression
>>>> processing.But it seems that "/p{IsBasicLatin}"is not a accessable
>>>> expression by boost::make_u32regex(tmp).Does boost:regex not suppor
>>>> the named unicode blocks or I have to pass some other flags to the
>>>> library? Now I was using the defult flag wich indicate using perl
>>>> syntactic.
>>
>> The named properties/character classes supported are here:
>> http://www.boost.org/doc/libs/1_35_0/libs/regex/doc/html/boost_regex/syntax/character_classes/optional_char_class_names.html
>>
>> As you can see I haven't added support for language-specific blocks
>> yet :-(

I forgot to mention that \p{IsBasicLatin} is the same as: [\x0-\x7f],
likewise the other continuous blocks can be expressed in the same way.

HTH, John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net