In my application I get a string from my datasource that I need to replace some of the bad chars in the strings.
Right now I have written a pretty standard regex that should replace any of the bad chars in the strings. However, instead of removing the bad chars it removes all chars from the string.
The bad chars I am trying to replace are /'()
Here is the current code that I am testing with.
Right now I have written a pretty standard regex that should replace any of the bad chars in the strings. However, instead of removing the bad chars it removes all chars from the string.
The bad chars I am trying to replace are /'()
Here is the current code that I am testing with.
Code:
boost::regex const string_matcher("/'()//gi"); dataStr = boost::regex_match(results->GetString(column),string_matcher); cout << dataStr << endl;
Comment