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, 13 Sep 2005 21:32:36 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1EFIOK-0000sz-H4@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1922





------- Additional Comments From ashok.malhotra@oracle.com  2005-09-13 21:32 -------
On the joint 9/13 telcon the WGs agreed to change the explanation of the 'x'
flag based on the Perl semnatics as suggested by Liam.  Suggested replacement
text is below.  Please comment.

x: If present, whitespace characters in the regex are removed prior to matching
with two exceptions:  whitespace characters preceded by a backslash are not
removed and whitespace characters within character classes are not removed. 
This can be used, for example to break up long regex' into readable lines.

Examples:
fn:matches("helloworld", "hello world", "x") returns true
fn:matches("helloworld", "hello[ ]world", "x") returns false
fn:matches("hello world", "hello\ sworld", "x") returns false
fn:matches("hello world", "hello\sworld", "x") returns true
Received on Tuesday, 13 September 2005 21:37:21 UTC

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