It looks like boost::regex_search souts my needs better...