
19 Oct
2013
19 Oct
'13
11:03 a.m.
On 10/18/2013 08:05 PM, Tim Burgess wrote:
Takeing an std::string as input, I need to return the same string with any characters not in the ranges “az”, “AZ” and “09” being discarded. A
#include <boost/regex.hpp> #include <boost/algorithm/string/regex.hpp> // ... boost::regex non_alnum("[^[:alnum:]]"); boost::algorithm::erase_all_regex(input, non_alnum);