Subject: What does this regexp do?
From: Daniel DeLorme <dan-ml dan42.com>
Date: Thu, 2 Oct 2008 23:11:52 +0900
I can't figure out what this does:
>> "1\n2\n3\n"[ /.\Z?/ ]
=> ""
I would expect it to output "1", just as:
>> "1\n2\n3\n"[ /.(\Z)?/ ]
=> "1"
Is this a bug?
--
Daniel