<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
> 4. Related to Q3: what does "xy" as that argument mean exactly?<br>
> a. #rx"[xy]"<br>
> b. #rx"[xy]+"<br>
> c. #rx"xy"<br>
> d. #rx"(?:xy)+"<br>
><br>
> Good question. d. would be the simplest case for newbies, but<br>
> b. might be more useful. I think several other languages avoid this<br>
> issue by using only one character as the separator.<br>
<br>
</div>The complication is that with " " or " \t" it seems that you'd want b,<br>
and with "&" you'd want c. (Maybe even make "&" equivalent to<br>
#rx" *& *" -- that looks like it's too much guessing.)<br>
<br>
And you're also making a point for:<br>
<br>
e. Throw an error, must be a single-character string.<br>
<br>
BTW, this question is important because it affects other functions, so<br>
I'd like to resolve it before doing anything.<br></blockquote><div><br></div></div>If we make things as simple-but-useful as possible, then I'd go for a single char separator with option b/d. (I don't think there are many cases where one would want a string as a separator?)<br>
Personally, I don't like much when functions ask for a character because the #\ looks ugly to me, but it still makes more sense than asking for a string that must have a single character.<br><br>Laurent<br><br>