I have a vector of strings im working trought, and i need to check how the string is formated. Im using sscanf in the rest of the function and i need something like this.
if (format("%f,%f,%f")) {
// Do someting
} else if (format("%d,%d")) {
// Do something else
} else {
// Do something
}
Is this possible using sscanf or something else from std?
If you are able to use tr1 then std::tr1::regex is the way to go.. take a look here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With