A
Alan Patterson
I have installed boost 1.33.1 and everything compiled and installed
fine on Windows using Visual C++ 8.0.
I wrote the following simple code to test the regex library and it
doesn't seem to work. In the following "Matched" is not output to
cout.
Am I missing something or do I have a problem with my regex install?
#include <string>
#include <boost/regex.hpp>
using namespace boost;
using namespace std;
int main()
{
string s("hello world");
regex e("hello");
cout << "Testing regex match" << endl;
if (regex_match(s, e)) {
cout << "Matched" << endl;
}
return 0;
}
fine on Windows using Visual C++ 8.0.
I wrote the following simple code to test the regex library and it
doesn't seem to work. In the following "Matched" is not output to
cout.
Am I missing something or do I have a problem with my regex install?
#include <string>
#include <boost/regex.hpp>
using namespace boost;
using namespace std;
int main()
{
string s("hello world");
regex e("hello");
cout << "Testing regex match" << endl;
if (regex_match(s, e)) {
cout << "Matched" << endl;
}
return 0;
}