Brendan F. wrote in post #1011953:
> I am trying to parse a string until the first occurrence of a word. This


#encoding: utf-8
require 'strscan'

puts RUBY_VERSION



testStr = "There is a special name, Andr, in it"
s = StringScanner.new(testStr)

index = s.skip_until /special/
puts index

index = s.skip_until /Andr/
puts index

--output:--
1.9.2
18
13