Qt
Version vom 19. Oktober 2016, 22:56 Uhr von Hamatoma (Diskussion | Beiträge)
RegExpr
QRegularExpression regExpr("(\\d+)x(\\d+)"); QRegularExpressionMatch match = regExpr.match(line); if (match.hasMatch()){ QString width = match.captured(1); QString height = match.captured(2); } QRegularExpression re("(\\w+)"); QRegularExpressionMatchIterator i = re.globalMatch(line); while(i.hasNext()){ QRegularExpressionMatch match = i.next(); QString word = match.captured(1); }