Some instances were replaced by QRegularExpression, whereas others were replaced with QString manipulation.