Joel Pearson wrote in post #1131012:
> Why does "gingerly" -> "ingy" rather than "ing"?
> Why does "guy" -> "gy" rather than nothing?

Both of these contain consecutive characters in the word "stringy"
within the word itself, if you take out the letters not found in
"stringy".

With guy, you'd take out the u, and you are left with 'gy'.  "gray"
would not work, because you would take out the character not in
stringy--a--and you'd be left with 'gry', which is not a match because
while 'gry' are in stringy, they are not in stringy successively.

Same thing for gingerly.  Take out the non-stringy characters and you
are left with ingy, which is valid since it's a part of stringy.

Thanks for the question, hope that clears it up a bit?

-- 
Posted via http://www.ruby-forum.com/.