QRegExp rx(QString::fromUtf8("<div align=\"left\">(.*)</div><hr>")); rx.setMinimal(true); QStringList list; int pos = 0; while ((pos = rx.indexIn(str, pos)) != -1) { list << rx.cap(1); pos += rx.matchedLength(); }