From: Michael Klishin Date: 2008-11-29T22:24:47+09:00 Subject: [ruby-core:20166] Re: \Z? in regular expression in 1.9.1 On 29.11.2008, at 15:13, David A. Black wrote: > Also, it's not allowed unconditionally in 1.8: > >>> /\Z?/ > SyntaxError: compile error > (irb):5: invalid regular expression; there's no previous pattern, to > which '?' would define cardinality at 3: /\Z?/ I only asked because I noticed the following difference between 1.8 and 1.9.1: http://gist.github.com/30237 1.9.1 behavior makes sense to me. MK