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;
}
else
{
std::cout << "OK" << std::endl;
}
return 0;
}

John


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