Solved Making a QString satisfy QRegularExpression
ModelTech last edited by ModelTech
How can I check that a QString satisfies a regular expression in a QRegularExpression? I know this can be done for QLineEdit, but now the QString originates from a file and not from a user input. QString::contains seems insufficient here as I need a match...
There is an example for use of QRegularExpression available.
I am using the older version QRegExp and its example. The example allows also to check externally of your code the regular expression string and its syntax with some text examples. The example code for QRegularExpression looks similar.
There is another class QRegluarExpressionMatch
The methods you want are
ModelTech last edited by
Thanks guys for these answers :)