Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-07-01 05:20:50

> Can someone help me identify if it is RegEx that has the bug, RegExBuddy,
> or
> if I am just off my rocker!

Works OK for me with the following test program:

#include <boost/regex.hpp>
#include <iostream>
int main()
boost::regex e("^.*(?=(?:.*[A-Z]){2,})(?=(?:.*\\d){2,}).*$");
if(boost::regex_match("AA1!", e))
std::cout << "Oops" << std::endl;
std::cout << "OK" << std::endl;
return 0;


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at