Hi,

I've a QRegExp like this:

Qt Code:
  1. ex.setPattern(".{" + QString("%1").arg(mMinLength) + "," + QString("%1").arg(mMaxLength) +"}");
To copy to clipboard, switch view to plain text mode 

where mMinLength and mMaxLength are the min and max length that I espected to have.

I use this expression to validate both some QString from file and QString from QLineEdit.
If the maxLenght is <= 1024 the QlineEdit works, insteand I can't input.

Is there a limit to max number of quantifiers in QRegExp?

How can avoid this?

Many thanks