From: Dave Thomas Date: 2001-11-23T14:43:50+09:00 Subject: [ruby-talk:26196] Re: regex/split/scan question Jos Backus writes: > What I am looking for is an expression that returns a String instead of an > Array, so I can do this in two steps (just like the Perl version): I must be missing something, then. Given these four strings, what do you want in ext and ext2? String ext ext2 ====== === ==== a a-b a-b-c a-b-c-d Cheers Dave