Boost logo

Boost Users :

Subject: Re: [Boost-users] [regex] problem w/ regex::extended
From: U.Mutlu (for-gmane_at_[hidden])
Date: 2015-02-14 22:45:50


Mark R Stallard wrote, On 02/13/2015 03:03 PM:
>
> U. Mutlu <for-gmane_at_[hidden]> wrote:
>
>> #define WORD "[\\w\\-\\.~/]+"
>
> I suspected that Perl would support the escape sequence \w
> inside a [] character set, but POSIX extended might not.
> The tests I ran affirmed those suspicions.

Thank you.
But on the "POSIX Extended Regular Expression Syntax" page
the escape sequence \w is very well listed:
http://www.boost.org/doc/libs/1_57_0/libs/regex/doc/html/boost_regex/syntax/basic_extended.html#boost_regex.syntax.basic_extended._quot_single_character_quot__character_classes_

This indicates a possible error either in the regex lib or in the above doc,
isn't it?

-- 
Uenal

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