From: John Carter Date: 2001-08-07T08:16:42+09:00 Subject: [ruby-talk:19260] Re: re On Tue, 7 Aug 2001, John Carter wrote: > Perhaps you mean... > "z u i u" =~ /((z|u|\s)+)/ > p $1 > "z u " > Otherwise you simply match a single character. (In this case space.) Sorry, I stated that badly. Your regex matches exactly the same as mine, the difference is $1 corresponds to a single character (space) in your regex, in mine it corresponds to the whole match. John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand I'm becoming less and less convinced of humans as rational beings. I suspect we are merely meme collectors, and the reason meme is only kept on to help count our change.