65,210
社区成员
发帖
与我相关
我的任务
分享 regex w("\\w+\\*");
smatch match;
string tmp = "temp:254424501*239184501*";
auto m_begin = sregex_iterator(tmp.begin(), tmp.end(), w);
auto m_end = sregex_iterator();
for (sregex_iterator m = m_begin; m != m_end; ++m)
{
cout << (*m)[0] << endl;
}