From: John Carter Date: 2001-08-07T08:13:44+09:00 Subject: [ruby-talk:19258] Re: re On Tue, 7 Aug 2001, markus liedl wrote: > i'm just not understanding it... > > "z u i u" =~ /(z|u|\s)+/ > p $1 > > => " " > > are \s more powerful? > surely, it's not really wrong, but i expected re's to work from left to > right. 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.) 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.