摘要: #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 阅读全文
posted @ 2009-07-05 18:46 冷寒生 阅读(296) 评论(0) 推荐(0) 编辑
摘要: #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[]){ 阅读全文
posted @ 2009-07-05 15:12 冷寒生 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #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 <& 阅读全文
posted @ 2009-07-05 15:09 冷寒生 阅读(565) 评论(0) 推荐(0) 编辑
IT知识库