I'm using the regular expression
"\x1B[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]"
to strip ANSI control codes out of a string. This works just fine with sed, but if I feed that string to a QRegularExpression it fails to match the control characters. I've tried using the QRegularExpression::escape() function; tried escaping just the leading '\x1B'; tried using '\e' in its place, all to no avail.