I need to search a file with boost regex and remove what is found. I will not always remove what is found sometimes I will replace so I was trying to us regex_replace to just replace what was found with a " ", but it is not working?
here is my code:
whatever you input is what it outputs. An example of what it is used for is a list of names and a few have an asterisk like *alice. I want to search for the asterisk and make the output just alice. when I run it through this it shows it finds the asterisk and will log that but will not remove it. Yes this has to be done in C++ because this is a C++ exercise from my advanced C++ class. Not homework we are just supposed to get used to using boost for out upcoming big assignment