On Fri, Jan 24, 2014 at 10:24 AM, Selvag Ruby <lists / ruby-forum.com> wrote:
> Hi Ruby lovers, guide me to find out the letter which is exist as
> continues and how long this?
> for eg:
> "gooogle"
> result must be as:
> "In gooogle, o is exist with 3 times"

Recipe ingredients:
regular expression with some repetition operator indicating minimum #
of repetitions you want to find
String#scan
#puts
String interpolation

Mix and stirr.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/