阅读背景:

可以在wstring上执行boost::regex_search吗?

来源:互联网 

This is what I tried:

这就是我所尝试的:

std::wstring extractText(std::wstring line) {
    std::wstring text;

    boost::regex exp("^.*?PRIVMSG #.*? :(.+)");
    boost::smatch match;

    if (boost::regex_search(line, match, exp)) {
              text = std::wstring(match[1].first, match[1].second);
             }

    return text;
    }
std::wstrin



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: