W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2005

[Bug 1922] 'x' regex flag not entirely clear

From: <bugzilla@wiggum.w3.org>
Date: Tue, 27 Sep 2005 15:29:53 +0000
To: public-qt-comments@w3.org
Message-Id: <E1EKHOz-00077u-Mw@wiggum.w3.org>


ashok.malhotra@oracle.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From ashok.malhotra@oracle.com  2005-09-27 15:29 -------
The WGs decided on 9/27 to accept the proposal below to fix this bug.

x: If present, whitespace characters in the regex are removed prior to matching
with one exception:  whitespace characters within character class expressions
(charClassExpr) are not removed. This can be used, for example, to break up long
regex' into readable lines.

fn:matches("helloworld", "hello world", "x") returns true

fn:matches("helloworld", "hello[ ]world", "x") returns false

fn:matches("hello world", "hello\ sworld", "x") returns true

fn:matches("hello world", "hello world", "x") returns false
Received on Tuesday, 27 September 2005 15:32:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:08 UTC