C++ (Qt) QString str = "=1234567:1111111=2222222=3333333"; QStringList lst = QString(str).replace(QRegExp("(\\=|\\:)"), ",\\1") .split(",", QString::SkipEmptyParts); qDebug() << lst;
(\=|\:)\,/$1/