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”
On Fri, Jan 24, 2014 at 10:24 AM, Selvag R. [email protected]
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