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 <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 Tuesday, 1 July 2003 16:44:25 UTC