将正则"^abc_gc.*?\\[0.*$"中的0换成变量i进行匹配,,要怎么改这个正则表达式啊?

#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+".*$";去试试