ako... wrote:
> thank you. yes, it seems to be the only way. just that it is a shame
> that we have to match the same expression again! the information was
> available already, it was just discarded during the first match in
> your sample.

I still didn't get what exactly you want.  Does this help?

>> 'a,b ,c'.split /\s*,\s*/
=> ["a", "b", "c"]

Kind regards

    robert