摘要:
#include <iostream>#include <boost/regex.hpp>#include <string>using namespace std;using namespace boost;/*搜索字符串中是否含有子字符串int main( int argc, char* argv[] ){ char *buf = "This is boost::regex example boost::regex"; boost::regex exampleregex( "boost::regex" ); boos 阅读全文
摘要:
#include "stdafx.h"#include <cstdlib>#include <stdlib.h>#include <boost/regex.hpp>#include <string>#include <iostream>using namespace std;using namespace boost;regex expression("^select ([a-zA-Z]*) from ([a-zA-Z]*)");int main(int argc, char* argv[]){ 阅读全文
摘要:
#include "stdafx.h"#include <cstdlib>#include <stdlib.h>#include <boost/regex.hpp>#include <string>#include <iostream>using namespace std;using namespace boost;regex reg("a(\\d*)b");int main(int argc, char* argv[]){ string in; cmatch what; cout <& 阅读全文