index « String « Ruby






1.The index method returns the index location of a matching substring.
2.line[line.index("k")]
3.Index and last index a pattern
4.Replace first vowel with an asterisk