I\'m looking for the Ruby method (1.9...) that can help me find the number of occurrences of a character in a string. I\'m looking for all occurrences, not just the first one.>
This link from a question asked previously should help scanning a string in Ruby
scan returns all the occurrences of a string in a string as an array, so
"Melanie is a noob".scan(/a/)
will return
["a","a"]