There is Regex in c# which I can use to remove some arbitrary characters or character ranges like Regex.Replace(str, "[^a-zA-Z0-9_.]+", "", RegexOptions.Compiled). But what is the equivalent of that in C++. I know Boost has a regex library in it. But for this operation , is it viable and how performant it is ? What is the best and fast way to remove characters from a string in c++ ?
There is Regex in c# which I can use to remove some arbitrary characters
Share
You probably want boost::regex_replace :