QRegularExpression for “only white space characters” (Replacement from QRegExp)
I must replace the QRegExp
with QRegularExpression
, and I had the check for “a string contains only white space characters” working, but I don’t know how to set QRegularExpression
to do the same thing. Here is a sample code (in comments, I put the result – and the desired result).