From: nobu.nokada@... Date: 2004-04-14T00:20:48+09:00 Subject: Re: perl pos function equivalent in ruby? Hi, At Fri, 9 Apr 2004 10:53:51 +0900, John W. Long wrote in [ruby-talk:96846]: > I know about MatchData. Perl's pos function basically returns the position > of the end of the current match. Which sounds like MatchData#end, the > difference is you can set pos so that you specify the begining in the string > of the next search. I haven't seen anything in Ruby like this. Use 2nd argument to String#index. -- Nobu Nakada