Using the C++ Standard Template Library function regex_replace()
, how do I remove non-numeric characters from a std::string
and return a std::string
?
This question is not a duplicate of question 747735 because that question requests how to use TR1/regex, and I'm requesting how to use standard STL regex, and because the answer given is merely some very complex documentation links. The C++ regex documentation is extremely hard to understand and poorly documented, in my opinion, so even if a question pointed out the standard C++
regex_replace
documentation, it still wouldn't be very useful to new coders.