Joseph McDonald wrote: > > k=0; (?A..?k).each{|x|k+=1}; k > > > > ... yields 43, and I think that makes sense. How does it work for > > strings? > > Can you explain why that works please? > > thanks, > -joe ?A specifies the single character 'A' as opposed to a string. These are ASCII values, i.e. numbers, so (?A..?k) is exactly the same thing as (65..107).