diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-24 21:35:05 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-24 21:35:05 +0000 |
commit | 430f4da042f9c49840d4607fdc20ebccd348676a (patch) | |
tree | 6373d6434e3627c789884359fbf4b489853a1a2f /re.c | |
parent | 2bb5441808b95926697799de2ab2d2675c89084e (diff) |
* re.c (match_aref): Use <code> around indexing examples to prevent
hyperlinks. [ruby-talk:389396]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1674,11 +1674,12 @@ name_to_backref_number(struct re_registers *regs, VALUE regexp, const char* name * mtch[range] -> array * mtch[name] -> str or nil * - * Match Reference---<code>MatchData</code> acts as an array, and may be - * accessed using the normal array indexing techniques. <i>mtch</i>[0] is - * equivalent to the special variable <code>$&</code>, and returns the entire - * matched string. <i>mtch</i>[1], <i>mtch</i>[2], and so on return the values - * of the matched backreferences (portions of the pattern between parentheses). + * Match Reference -- <code>MatchData</code> acts as an array, and may be + * accessed using the normal array indexing techniques. <code>mtch[0]</code> + * is equivalent to the special variable <code>$&</code>, and returns the + * entire matched string. <code>mtch[1]</code>, <code>mtch[2]</code>, and so + * on return the values of the matched backreferences (portions of the + * pattern between parentheses). * * m = /(.)(.)(\d+)(\d)/.match("THX1138.") * m #=> #<MatchData "HX1138" 1:"H" 2:"X" 3:"113" 4:"8"> |