There is a simple C++ method to use pattern matching on strings? The code should sound like this:
if (regexpcmp(\"l?nole*[0-9]\", \"linoleum1\")) { //we ha
Take boost.regex friend. if you are not allowed to use boost (sadly, there are still companies doing this), you could look into pcrecpp, which is a C++ binding developed by google for the famous PCRE library.
pcrecpp