From e61abd249d4148c05b6c24ff787ff98978bbc2f9 Mon Sep 17 00:00:00 2001 From: Jerome Pasion Date: Thu, 10 Feb 2011 11:53:00 +0100 Subject: Noted that QML uses JavaScript based regexp Task-number: QTBUG-16071 --- doc/src/declarative/qmltexthandling.qdoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/src/declarative/qmltexthandling.qdoc b/doc/src/declarative/qmltexthandling.qdoc index e0d9b0f..7906193 100644 --- a/doc/src/declarative/qmltexthandling.qdoc +++ b/doc/src/declarative/qmltexthandling.qdoc @@ -68,7 +68,9 @@ The validator elements bind to \c {TextInput}'s \c validator property. \snippet doc/src/snippets/declarative/texthandling.qml regexp validator The regular expression in the snippet will only allow the inputted text to be -\c {fruit basket}. The \l {QRegExp} class has more information about Qt's -regular expressions. +\c {fruit basket}. + +Note that QML parses JavaScript regular expressions, while Qt's +\l {QRegExp} class' regular expressions are based on Perl regular expressions. */ -- cgit v0.12