I've tried creating a QRegularExpression with /S+ and .+
If you don't have it working yet, can you post your regular expression and the code where you use find()? I'll see if i can modify it to get it to work.