From: nobu.nokada@... Date: 2002-01-07T13:42:39+09:00 Subject: [ruby-talk:30432] Re: Efficient "lexing" in Ruby (maybe an RCR?) At Mon, 7 Jan 2002 13:18:12 +0900, Matt Armstrong wrote: > I liked your idea at first, but this method is actually slower in my > case. Why? String#index with an offset does not support \A or ^ in > the regexp. Use \G instead. \A always matches the beginning of the string. -- Nobu Nakada