>>>>> "A" == Aristarkh A Zagorodnikov <xm / w3d.ru> writes: A> hmm ... then why '^' works like that ? ;) because it's consistent with $ pigeon% ruby -e 'print "123\n456" =~ /123$/, "\n"' 0 pigeon% pigeon% ruby -e 'print "123\n456" =~ /456$/, "\n"' 4 pigeon% Guy Decoux