Re: Regexp help
- From: Jeremy Woertink <jeremywoertink@xxxxxxxxx>
- Date: Wed, 19 Sep 2007 07:55:12 +0900
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/.
.
- References:
- Re: Regexp help
- From: Daniel Lucraft
- Re: Regexp help
- From: Jeremy Woertink
- Re: Regexp help
- From: Phrogz
- Re: Regexp help
- From: Jeremy Woertink
- Re: Regexp help
- Prev by Date: Re: Regexp help
- Next by Date: Re: Tk Ruby / Fx Ruby / Wx Ruby
- Previous by thread: Re: Regexp help
- Next by thread: Re: Regexp help
- Index(es):
Relevant Pages
|
Loading