I have string like this one:
parser = new ASTParser(in, encoding);
After i tokenize those string I get:
ASTParser(in, encoding);
Now, how can I perform regex to get only ASTParser?
I tried to do this using std::erase
:
str.erase(std::remove_if(str.begin(), str.end(), isLetter), str.end());
but the problem is that I get also parameters (ASTParserinencoding
) and I don't want this.
Also, I would very appreciate solution with boost::regex
.