W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2003

RE: ORA-FO-REPLACE-MATCH 7.5.3: fn:replace

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Wed, 13 Aug 2003 12:29:35 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB0A3CBBFE@red-msg-12.redmond.corp.microsoft.com>
To: "Kay, Michael" <Michael.Kay@softwareag.com>, "Stephen Buxton" <stephen.buxton@oracle.com>, <public-qt-comments@w3.org>
Shall I add the examples below?

 

fn:replace('AAAA', A*, 'b') returns 'b'

fn:replace('AAAA', A*?, 'b') returns 'bbbb'

 

If someone cares to construct more interesting examples, that would be
great!

All the best, Ashok 

________________________________

From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Kay, Michael
Sent: Tuesday, July 01, 2003 1:44 PM
To: Stephen Buxton; public-qt-comments@w3.org
Subject: RE: ORA-FO-REPLACE-MATCH 7.5.3: fn:replace 

 

An ordinary qualifier (A*) matches the longest possible sequence of As.
A reluctant qualifier (A*?) matches the shortest possible sequence. This
is explained in 7.5.1, but an example of the effect of the rule on
replace() would not do any harm.

 

Michael Kay

	-----Original Message-----
	From: Stephen Buxton [mailto:stephen.buxton@oracle.com] 
	Sent: 30 June 2003 18:38
	To: public-qt-comments@w3.org
	Subject: ORA-FO-REPLACE-MATCH 7.5.3: fn:replace 

	Functions and Operators, Section 7.5.3: fn:replace 
	If multiple subsequences can be matched, is the largest one
chosen, or the smallest ? 

	eg replace("AAAAAA", "A*", "B") - does this return "B" or
"BBBBBB" ?
Received on Wednesday, 13 August 2003 15:30:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:13 UTC