D
Dave
Hello all,
Using Boost (probably regular expressions), how would I check that a
std::string conforms to the pattern "Software Version:
[0-9]+-[0-9]+-[0-9]+-[0-9]+"? For example, the following string should be
accepted:
Software Version: 2-2-8-10
but this should not:
Software Version: 2-2-8-A
I'd like to do something akin to the following:
if (!boost::string_matches_pattern(str, "Software Version:
[0-9]+-[0-9]+-[0-9]+-[0-9]+"))
cout << "Bad software version!\n";
Thanks in advance,
Dave
Using Boost (probably regular expressions), how would I check that a
std::string conforms to the pattern "Software Version:
[0-9]+-[0-9]+-[0-9]+-[0-9]+"? For example, the following string should be
accepted:
Software Version: 2-2-8-10
but this should not:
Software Version: 2-2-8-A
I'd like to do something akin to the following:
if (!boost::string_matches_pattern(str, "Software Version:
[0-9]+-[0-9]+-[0-9]+-[0-9]+"))
cout << "Bad software version!\n";
Thanks in advance,
Dave