Hi,

I am able to know if there is a substring in a string with:

if string =~ /#{word}/:
  puts "match"
else
  puts "do not match"
end

But I would like to count all the substring from a string...

Thanks for help :)
-- 
Posted via http://www.ruby-forum.com/.