From: Zangief Ief Date: 2007-11-18T23:36:51+09:00 Subject: Count substrings from a string 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/.