我有一个如下字符串:
std::string myString = "This is string\r\nIKO\r\n. I don't exp\r\nO091\r\nect some characters.";
现在我想摆脱 include 之间的\r\n
字符\r\n
。所以字符串必须如下所示:
std::string myString = "This is string. I don't expect some characters.";
我不确定,会有多少\r\n's
人出现。而且我不知道中间有什么字符\r\n
。我怎么能regex
在这个字符串中使用?