33,311
社区成员
发帖
与我相关
我的任务
分享
string str("xAX12ADE Y89UBbcx tt134rxn 123456789");
string str("xAX12ADE Y89UBbcx tt134rxn 123456789");
regex r("[a-zA-Z0-9]{8,}");//xAX12ADE Y89UBbcx tt134rxn 123456789
sregex_iterator it(str.begin(),str.end(),r);
sregex_iterator it_end;
for (;it != it_end; ++it)
{
cout << it->str() << endl;
}