C++ (Qt)QRegExp rx(...);QStringList list;for (int pos = 0; (pos = rx.indexIn(str, pos)) != -1; pos += rx.matchedLength()) list += rx.cap(1);
C++ (Qt) QRegExp rx("test=([^&]+)&qwerty"); QString s("asdtest=234dfgjknwedfrgfg ee434---555!@#&qwerty"); if (rx.indexIn(s) != -1) qDebug() << rx.cap(1); // 234dfgjknwedfrgfg ee434---555!@#
Starting D:\Programming\Qt\hello-4_8_5_msvs2012_x86-Debug\debug\hello.exe..."234dfgjknwedfrgfg ee434---555!@#" Starting D:\Programming\Qt\hello-Desktop_Qt_5_1_0_MSVC2012_64bit-Debug\debug\hello.exe..."234dfgjknwedfrgfg ee434---555!@#"