31 Jul
2007
31 Jul
'07
10:48 p.m.
I was wondering is it really necessary to use string algorithms to find in variable str2 the last occurence that does not contain a number between 1 and 9 and create a substr base on that. regulary i would use std::string strNew = str2.substr(str2.find_last_not_of("123456789")); So 2 questions. 1.) Whats the benefit of the string algorithm version of boost in this case. 2.) How would I do this using string algorithm instead.