-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Invalid
-
Affects Version/s: 4.4.3
-
Fix Version/s: Some future release
-
Component/s: Core: Containers and Algorithms
-
Labels:None
When using \b escaped special characters fail to match
For Eample :
QString test = QString("foo $40");
test.replace(QRegExp("\\b\\$40
b"), "foo");
qDebug() << (test == "foo foo" ? "success" : "failure"); //failure
Escaping a special character e.g.
$ should make QRegExp see it as a normal character.
This happens for all special characters except _