#!/usr/bin/ruby # you can use regular expression in Ruby s = "hello, world" i = s.index(/..o/) puts s[i..s.size]