From: stesch@... (Stefan Scholl) Date: 2001-08-07T15:23:13+09:00 Subject: [ruby-talk:19274] Re: re On 2001-08-06 19:08:08Z, markus liedl wrote: > i'm just not understanding it... Me, too. > "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. Funny ... irb(main):001:0> "z u i u" =~ /(z|u|\s)+/ 0 First match on position 0. But $1 is " " instead of "z". ruby 1.6.4 (2001-06-04) [i586-linux]