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" ?