From: William James Date: 2004-12-12T09:07:23+09:00 Subject: Find every location of "th" in string. Find location of every "th" in "the thin man thinks". In Icon: every write(find("th", "the thin man thinks")) In Ruby: s='the thin man thinks' t='th' (0...s.size).each{|x| puts x if s[x,t.size]==t} Is there a better way?