//字符串
QString s="323,2541265,21231,132,2321232,71289,46544,7899,1247,258,369,65412";
//接收分割字符串后的list
QStringList strList;
//正则表达式
QRegExp regExp;
regExp.setPattern(".12.");
int pos(0);
while ((pos = regExp.indexIn(s, pos)) != -1)
{
strList.push_back(regExp.capturedTexts().at(0));
qDebug()<<"rx.capturedTexts().at(0)"<
pos += regExp.matchedLength();
qDebug()<<"regExp.pos()"<
}
qDebug()<<"strLis"<