Re: rq25 updates (STRBEFORE, STRAFTER, REPLACE and more)

>> Proposal 1:
>> REGEX and REPLACE work on strings (simple literal or xsd:string) only.
>>
>> Proposal 2:
>> REGEX and REPLACE work on all string-like forms as first argument (includes literals with language tag).  This adds first argument literal with language tag to REGEX.
>
> I prefer 2.
>
> There's even an option:
>
> Proposal 3:
> REGEX and REPLACE work on all literal forms as first argument (includes literals with language tags and typed literals). This adds first argument literal with language tag or datatype to REGEX.
 >
 > Not sure if I prefer that to 2, but it is an option.

To check I understand : you mean a sort of "automatic STR of literals" 
applied to the main (first) arg of REGEX and REPLACE?

I need to think about 3 + REPLACE a bit more, but you can produce 
illegal lexical forms by simple string bashing -- it's quite hard to do 
that with strings themselves.  Some systems do not handle illegal 
lexical forms at all.

REPLACE(123, "2", "A") -> "1A3"^^xsd:integer ???


	Andy

Received on Monday, 31 October 2011 15:00:10 UTC