From: Srinivas reddy Guda [mailto:gsr / fast-forward.com.sg] 
# How to find the pattern in strings.

find it..

http://www.ruby-doc.org/core/classes/String.html

qri string.=~

qri string.index