From: Ted Date: 2002-12-06T11:02:04+09:00 Subject: Re: Regexp imxo - does 'x' work? .. and it returns 'nil' for no match? > > perl -e 'print "foobar" =~ /foo bar/x' >> 1 > > ruby -e 'print "foobar" =~ /foo bar/x' >> 0 > > Perl is returning whether there was a match (undef if no match). > Ruby is returning the offset of the match (strings start at 0).