re.c: [DOC] fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
945d82ed20
commit
5c1fd79f1d
6
re.c
6
re.c
@ -887,7 +887,7 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu
|
|||||||
* <code>MatchData</code> encapsulates the result of matching a Regexp against
|
* <code>MatchData</code> encapsulates the result of matching a Regexp against
|
||||||
* string. It is returned by Regexp#match and
|
* string. It is returned by Regexp#match and
|
||||||
* String#match, and also stored in a global variable returned by
|
* String#match, and also stored in a global variable returned by
|
||||||
* Regexp.last_match
|
* Regexp.last_match.
|
||||||
*
|
*
|
||||||
* Usage:
|
* Usage:
|
||||||
*
|
*
|
||||||
@ -918,11 +918,11 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu
|
|||||||
* == Global variables equivalence
|
* == Global variables equivalence
|
||||||
*
|
*
|
||||||
* Parts of last <code>MatchData</code> (returned by Regexp.last_match) are also
|
* Parts of last <code>MatchData</code> (returned by Regexp.last_match) are also
|
||||||
* aliased as a global variables:
|
* aliased as global variables:
|
||||||
*
|
*
|
||||||
* * <code>$~</code> is <code>Regexp.last_match</code>;
|
* * <code>$~</code> is <code>Regexp.last_match</code>;
|
||||||
* * <code>$&</code> is <code>Regexp.last_match[0]</code>;
|
* * <code>$&</code> is <code>Regexp.last_match[0]</code>;
|
||||||
* * <code>$1</code>, <code>$2</code> and so on are
|
* * <code>$1</code>, <code>$2</code>, and so on are
|
||||||
* <code>Regexp.last_match[i]</code> (captures by number);
|
* <code>Regexp.last_match[i]</code> (captures by number);
|
||||||
* * <code>$`</code> is <code>Regexp.last_match.pre_match</code>;
|
* * <code>$`</code> is <code>Regexp.last_match.pre_match</code>;
|
||||||
* * <code>$'</code> is <code>Regexp.last_match.post_match</code>;
|
* * <code>$'</code> is <code>Regexp.last_match.post_match</code>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user