我在将 C++ 应用程序连接到 Oracle DB 时遇到问题,出现错误
"[OracleException] errcode: 1804, desc: Error while trying to retrieve text for error ORA-01804".
string str = "hello world!\r\naa=`xxx_1`\r\nhello world!";
sregex rx = sregex::compile(".+=`(.+)_1`");
smatch what;
if( regex_match( str, what, rx ) )
{
std::cout << what[1] << '\n';
}
Run Code Online (Sandbox Code Playgroud)
这行不通,我使用boost.xpressive而不是boost.regex,如何匹配多行文本?