Anonymous - 2012-10-01

hmm sorry I am actually not pretty sure,
maybe I have done a fail too
[code]
foreach(QString part , params){
qDebug("---------");
qDebug("part: = \"%s\"",qPrintable(part));
QRegExp singleParamRegBegin("\\^[\\s]*(\\w)+");
if(singleParamRegBegin.indexIn(part)){
qDebug("Maintype of Param: \"%s\",
qPrintable(singleParamRegBegin.cap(1)));
}
qDebug("---------");
}
[/code]
I get on the Console:
---------
part: = "QHash <QHash<QString,QString> , ClassImpl*>*** classma2"
Maintype of Param: ""
---------
If I replace the Regex singleParamRegBegin ("\\^[\\s]*(\\w)+"); with ("^[\\s]*(\\w)+");
I just get
---------
part: = "QHash <QHash<QString,QString> , ClassImpl*>*** classma2"
---------
Any Idea?