> -----Original Message----- > From: ts [mailto:decoux / moulon.inra.fr] > Sent: Thursday, June 14, 2001 3:28 PM > To: ruby-talk ML > Cc: ruby-talk / ruby-lang.org > Subject: [ruby-talk:16468] Re: Ruby regexp bug ? > > > >>>>> "A" == Aristarkh A Zagorodnikov <xm / w3d.ru> writes: > > A> Also, if this is normal, I want to propose a change, perhaps > by additional > A> option in regexps, or > A> (preferably for existing code), a global variable $something > (yikes! - I > A> hate globals ;) which controls this, > A> or at least want to know why this way was preferred over perl one. > > pigeon% ruby -e 'print "123\n456" =~ /\A456/, "\n"' > nil > pigeon% > > pigeon% ruby -e 'print "123\n456" =~ /\A123/, "\n"' > 0 > pigeon% hmm ... then why '^' works like that ? ;) Aristarkh A Zagorodnikov, Lead Programmer, W3D Group http://www.w3d.ru /// xm / w3d.ru /// ICQ UIN 36987938