Guest User

Untitled

a guest
May 19th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <QtCore>
  2.  
  3. int main(int argc, char **argv)
  4. {
  5.     QStringList sourceLines = QString("Точка: 123\r\nТочка: \r\nТочка: yoba").split("\r\n");
  6.     QRegExp rx("^Точка: (.*)
  7.    foreach (const QString &line, lines) {
  8.        if (rx.indexIn(line) >= 0)
  9.            qDebug() << rx.cap(1);
  10.    }
  11.    return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment