From: 7stud -- Date: 2011-07-21T07:49:29+09:00 Subject: Re: StringScanner using skip_until not detecting special characters 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 -- Posted via http://www.ruby-forum.com/.