2010-01-27から1日間の記事一覧
"と'の前にバックスラッシュをつけたい。 \\\\と4つ連続で書かないと、置換できなかった。まさか4つとは。 regex_replace.cpp #include <iostream> #include <string> #include <boost/regex.hpp> using namespace std; using namespace boost; int main(int argc, char* argv[]){ string str = </boost/regex.hpp></string></iostream>…