Lucas Hills
added a comment - 31/Mar/11 5:12 AM Random 1 in a million.. I'm supposed to be at the ruby meeting in melb where you are right now Xavier. But instead I'm working and had just logged into here to report the same bug you already have..
My stack trace is a little different but pretty sure it's the same bug as this one:
http://stackoverflow.com/questions/5492960/regex-errorjavajavalangarrayindexoutofboundsexception-4-on-3-character-non/5493461#5493461

Xavier Shay
added a comment - 31/Jul/11 7:42 PM Just an update that this bug is still present in 1.6.3, and it's just been introduced into ruby 1.9.3-preview1 as well
http://redmine.ruby-lang.org/issues/5126
Hopefully it ends up being a similar fix for both.
For context, this technique is used in DataMapper to build up a regex to validate email addresses:
https://github.com/datamapper/dm-validations/blob/master/lib/dm-validations/formats/email.rb