From: Minero Aoki Date: 2000-12-08T08:25:55+09:00 Subject: [ruby-talk:6919] Re: Equivalent to Perl's /g and pos()? In mail "[ruby-talk:6880] Re: Equivalent to Perl's /g and pos()?" jweirich@one.net wrote: > And StringScanner is incompatible because ... it only matches from the > front of the string? ? StringScanner can do it. s = StringScanner.new( 'aaa bbb ccc' ) p s.scan_until /bbb/ #-> "bbb" ...ah, I'd forgot to add an English document of this method. Minero Aoki