I need to embed user-input in my regular expression, so it needs to be escaped for any regex special characters, and I don't know in advance what the string will be.
It would be something like
string pattern = "\\d+ " + myEscapeFunction(userData);
Which special characters do I need to escape? Or is there an equivalent function to Qt's QRegExp::escape?