#include "stdafx.h"
#include
#include"deelx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char p = NULL;
int i = 0;
p= "^abc_gc.?\[0.*$";
CRegexpT reg( p,IGNORECASE );
MatchResult match_ret = reg.Match( "abc_gchdj[0,0] = 1");
if (match_ret.IsMatched())
{
cout<<"匹配"<<endl;
}
else
std::cout<<"不匹配"<<std::endl;
return 0;
}
p="^abc_gc.?["+i+".*$";去试试