Boost logo

Boost Users :

From: Javier de Acha (jdeacha_at_[hidden])
Date: 2003-07-23 12:49:52


Hello,
The next few lines doesn't work (1) with \s. But (2) works well [[:space:]]

regbase::escape_in_lists dont func?

Someone it knows because?

Thanks
Javier

---------------------------------------------------------------------
(1)
void main()
{
     regex exp("\s(ab)*",regbase::perl);

    cmatch what;
    if(regex_match(" ababab", what, exp))
    {
        string str = what[0]; //this fail
     }
}
--------------------------------------------------------------------------------
(2)
void main()
{
     regex exp("[[:space:]](ab)*",regbase::perl);

    cmatch what;
    if(regex_match(" ababab", what, exp))
    {
        string str = what[0]; //this succesfully match
     }
}

[Non-text portions of this message have been removed]


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