7stud -- wrote in post #1089771:
> str = 'Hello, world!?'
> puts str.count("a-zA-z", "^aeiou")
>

Whoops.  That should be ... count("a-zA-Z", "^aeiou"). You can read that 
statement as: count() all the characters which are in the ranges 
"a-zA-Z" AND which are NOT "aeiou".

-- 
Posted via http://www.ruby-forum.com/.