From: ser@... (Sean Russell) Date: 2002-03-23T05:08:17+09:00 Subject: Bug in Ruby Regexp? Hi, Whilst trying to fix the iso-8859-1 support in Rexml, I came across this: ser@valentine ~/Work/rexml $ ruby -e ' puts /\A([^<]*)/u.match("Koln")[0]' Koln ser@valentine ~/Work/rexml $ ruby -e ' puts /\A([^<]*)/u.match("K�ln")[0]' K�ln ser@valentine ~/Work/rexml $ ruby -e ' puts /([^\<]*)/.match("K�ln")[0]' K�ln (sorry about the line formatting; Google wraps lines) '�' is a valid ASCII character; it's even got an ASCII value of less than 256. The mapping for this character is the same value for unicode as it is for iso-8859-1; Is this a bug in the unicode support in Regexp?