Qt's QRegExp does not support the "?" modifier for the quantifiers, and neither RegExp from QtScript does.

However in Qt/C++ one can use QRegExp::setMinimal() to make the quantifiers non-greedy.

But how to do it in QtScript?