Boost logo

Boost Users :

Subject: [Boost-users] [regex] character sets
From: Detlef Meyer-Eltz (Meyer-Eltz_at_[hidden])
Date: 2009-02-08 20:08:25


I'm working with CBuilder6 and boost boost_1_34_1 and found, that

regex expression1("[[:print:]]+");

matches with regex_search the whole string:

testtext = "ab\r\ncd ef";

including the linebreak and the white space. I had assumed, that the
print-class would consist exactly in the set of characters for which
the standard function isprint returns true but isprint returns false
for the space characters. Is there there any documentation with the
exact enumerations of the different character sets?

With Kind Regards,

Detlef Meyer-Eltz


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