From: Robert Klemme Date: 2004-10-07T22:04:46+09:00 Subject: Re: Index of multiple similar strings "Milo Thurston" schrieb im Newsbeitrag news:ck3dg6$6sr$1@news.ox.ac.uk... > Robert Klemme wrote: > > puts "Index #{$`.length}" > > Excellent, thanks. > In which book/manual is $` described? I've not seen it before. It's in the Pickaxe (both versions) although not in the online version of the first edition AFAIK. You can find about the other way in the Regexp doc: http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_regexp.html http://www.ruby-doc.org/core/classes/Regexp.html Kind regards robert