Boost logo

Boost :

From: Jan Hermelink (Jan.Hermelink_at_[hidden])
Date: 2004-12-25 07:43:39


Hello,

I think there is a bug in Boost.Regex 1.32.0 with
regex_constants::icase.

        std::string s("xx");
        boost::regex re("x", boost::regex_constants::icase);
        boost::regex_replace(s, re, "a");

The replace yields "axa"; should be "aa" I think.

Without the icase flag the replace yields "aa".

Thank you

Jan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk