Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QRegExp and *literal* Minus/Dash
MuldeR last edited by
How do I match a literal Minus/Dash in QRegExp?
My goal is to match a literal character, delimited by word boundaries.
This works as expected, to match a literal x:
But neither of these works to match a literal "-" character:
I think "-" shouldn't need escaping, but I tired with and without. No luck.
How do I do it correctly?