52 #include <QStringList>
53 #include <QRegularExpression>
54 #include <QRegularExpressionMatch>
55 #include <QRegularExpressionMatchIterator>
190 while (
i.hasNext()) {
201 QString pattern(
"^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d\\d?, \\d\\d\\d\\d$");
212 QString pattern(
"^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d\\d?, \\d\\d\\d\\d$");
272 bool isValid = invalidRe.
isValid();
331 QString subject(
"the quick fox");
333 while (
i.hasNext()) {
355 (
"",
"day",
"month",
"year",
"",
"name")
363 QString subject("the quick fox");
small capitals from c petite p scientific i
[1]
The QRegularExpression class provides pattern matching using regular expressions.
PatternOptions patternOptions() const
void setPatternOptions(PatternOptions options)
qsizetype patternErrorOffset() const
static QString escape(const QString &str)
void setPattern(const QString &pattern)
@ DotMatchesEverythingOption
@ PartialPreferCompleteMatch
@ PartialPreferFirstMatch
QRegularExpressionMatch match(const QString &subject, qsizetype offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const
QString errorString() const
QRegularExpressionMatchIterator globalMatch(const QString &subject, qsizetype offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const
static QString wildcardToRegularExpression(const QString &str, WildcardConversionOptions options=DefaultWildcardConversion)
The QRegularExpressionMatch class provides the results of a matching a QRegularExpression against a s...
qsizetype capturedEnd(int nth=0) const
bool hasPartialMatch() const
qsizetype capturedStart(int nth=0) const
int lastCapturedIndex() const
QString captured(int nth=0) const
The QRegularExpressionMatchIterator class provides an iterator on the results of a global match of a ...
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
GLfloat GLfloat GLfloat w
[0]
GLenum GLenum GLenum input
GLsizei const GLchar *const * string
[0]