From: 7stud -- Date: 2012-12-21T10:24:25+09:00 Subject: Re: A stupid question? 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/.