>>>>> "S" == Shashank Date <ADATE / kc.rr.com> writes:

S> Not sure how index function works with regex

 ruby call #==, try

   a = ["this","is","his","book", /is/]
   puts a.index(/is/)


Guy Decoux