When I need to scan in values from a bunch of strings, I often find myself falling back to C\'s sscanf() strictly because of its simplicity and ease of use. For
I think that with regex it could be done easy. So boost::regex or std::regex in a new standard. After that just convert your tokens to float by using lexical_cast or streams directly.