From: Brian Candler Date: 2008-11-30T04:17:22+09:00 Subject: [ruby-core:20167] Re: \Z? in regular expression in 1.9.1 On Sat, Nov 29, 2008 at 10:13:55PM +0900, David A. Black wrote: >>> /a\Z?/.match("bcde").to_a > => [""] > > I guess that's harmless but I can't think of any use for it. That's gotta be a bug, and is potentially dangerous: irb(main):001:0> puts "phooey" if /a/.match("bcde") => nil irb(main):002:0> puts "phooey" if /a\Z?/.match("bcde") phooey => nil