-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.12.4
-
None
-
MinGW32 7.3.0 - Windows 7x86.
According to the plan there should be two elements, but only the first one is defined.
QRegExp rx("\\d+"); QString buf_last; buf_last.append("read0_1"); rx.indexIn(buf_last); auto try_step = rx.cap(0).toInt(); auto current_step = rx.cap(1).toInt(); qDebug() << try_step << current_step << buf_last << "rx___" << rx.cap(0) << rx.cap(1) << rx.capturedTexts(); result: 0 0 "read0_1" rx___ "0" "" ("0")
Working if used:
QRegExp rx("(\\d+)");