CAtlRegExp<> reUrl;
REParseError status = reUrl.Parse(
"{\\h+-\\h+-\\h+-\\h+-\\h+-\\h+}"
); if (REPARSE_ERROR_OK != status)
{
return 0;
} FILE *fp = NULL;
fp = fopen("c:\\1.txt", "r");
char buff[3000];
memset(buff,0x00,3000);
fread(buff,sizeof(char),3000,fp);
fclose(fp);
printf("%s\n",buff); CAtlREMatchContext<> mcUrl;
if (!reUrl.Match(
buff,
&mcUrl))
{
return 0;
}
printf("Num:%d\n",mcUrl.m_uNumGroups);        for (UINT nGroupIndex = 0; nGroupIndex < mcUrl.m_uNumGroups;
++nGroupIndex)
{
const CAtlREMatchContext<>::RECHAR* szStart = 0;
const CAtlREMatchContext<>::RECHAR* szEnd = 0;
mcUrl.GetMatch(nGroupIndex, &szStart, &szEnd); ptrdiff_t nLength = szEnd - szStart;
printf("%.*s\n",  nLength, szStart); }
////////////////////////////////////////////////////////////////////////c:\1.txt内容如下:01-23-8B-A3-DE-77
daffldkfajadf
02-23-8B-A3-DE-77
fdfaf
03-23-8B-A3-DE-77
fadf
运行后,输出
Num :1
/////////////////////////////////////////////////////////////////////////
即,此段代码只搜索到01-23-8B-A3-DE-77
请问如何修改,使之能搜索到所有特定子窜