Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const QRegularExpression re("X([-+]?\\d*\\.?\\d+)\\s+Y([-+]?\\d*\\.?\\d+)");
- QTextStream in(&file);
- while(!in.atEnd()) {
- QString line = in.readLine();
- const QRegularExpressionMatch reMatch = re.match(line);
- if(reMatch.hasMatch())
- qDebug() << "X: " << reMatch.captured(1) << " Y: " << reMatch.captured(2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement