QString strIP = "255,255,255,256";
QRegExp regExpIP("((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])[\\.]){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])");
qDebug() << regExpIP.exactMatch(strIP );
QString strNum = QString("^[0-9]{%1,%2}$").arg(nStart).arg(nEnd);
QRegExp regExpNum(strNum);
QRegExp regExpNetPort("((6553[0-5])|[655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{3}|[1-9][0-9]{2}|[1-9][0-9]|[0-9])");
QRegExp regExpPwd(QString("^[A-Za-z0-9]{6,12}$"));
QRegExp regExpText(QString("^[\u4e00-\u9fa5A-Za-z0-9]{15}$"));