From: Jeremy Woertink Date: 2007-09-19T07:55:12+09:00 Subject: Re: Regexp help Jeremy Woertink wrote: > Gavin Kistner wrote: >> It means that it found the first match starting at index 0 in the >> string. (Try reading the documentation on the =~ method.) >> > > ok, that makes sense. I did check out the docs on > http://www.ruby-doc.org/core/ > I clicked the =~ method under Regexp and it sends me to > rxp.match(str) => matchdata or nil > Returns a MatchData object describing the match, or nil if there was no > match. This is equivalent to retrieving the value of the special > variable $~ following a normal match. > > which didn't say anything about indexes. Are there any other sites that > have different documentation? > > > ~Jeremy haha, ok you can disregard that, I looked under string and seen what you were talking about. My bad. thanks ~Jeremy -- Posted via http://www.ruby-forum.com/.