From: botp Date: 2010-06-04T22:03:38+09:00 Subject: Re: Unexpected length of £ (pound) character? On Fri, Jun 4, 2010 at 6:47 PM, Brian Candler wrote: > If you want to capture (say) the first 6 characters of the string, try >>> a = "1234£6789" > => "1234\302\2436789" >>> a =~ /\A(.{6})/u > => 0 >>> puts $1 > 1234£6 > => nil >"1234£6789"[0..5] => "1234£6" > ruby 1.9 works in characters. It brings with it enormous complexity, > pitfalls and inconsistencies. Pick your poison :-) All programmers are optimists. -Frederick Brooks, Jr. ;-) kind regards -botp