I am using Qt5.6.
I need to process the incoming data in a serial port, the data will be of the format "AD=+172345AD=+272345" and so on. I append the incoming data to a QString
and using Regex to extract the decimals.
If I write a regular expression :
int tmp = StrData.indexOf(QRegularExpression("AD=\+[0-9]{6}"))
it doesn't match, i.e tmp is always -1. But I tested the regex here, and I found it to be valid. What could be the issue?