#include
#include
using namespace std;
int main( ) {
std::string s;
while(true)
{
cout << "Expression to be evaluated";
cin >> s;
try
{
boost::regex re("(((F|B)\\s\\d{1,4})|(L|R)\\s((00\\d)|((0-2)\\d{1,2})|3((0-5)\\d|60))\\.)+");
if (boost::regex_match(s, re))
{
cout << s << "is not valid"<< endl;
}
}
catch (boost::regex_error& e)
{
cout << " error in REGEX" << endl;
continue;
}
}
}
Tenemos problemas al momento de compilar, pero hemos investigado y se trata de la versión de la librería, entonces pues no supimos donde bajar otra o como se utiliza la que tenemos.
Diana Fernández
Daniel Varela
No comments:
Post a Comment