// g++ -D_GLIBCXX_DEBUG -DDEBUG=1 -g3 -ggdb -O0 regex-test.cpp -o regex-test.exe -lboost_regex #include int main(int, char**) { const boost::regex re("^[a-zA-Z]*"); bool match = boost::regex_match("asdf",re); return (int) !match; }