Project

General

Profile

Bug #5953 ยป 0002-docs-spelling-on-doc-re-rdoc.patch

zzak (Zachary Scott), 02/01/2012 04:24 AM

View differences:

doc/re.rdoc
179 179
necessary for overall success. A greedy metacharacter can be made lazy by
180 180
following it with <tt>?</tt>.
181 181

  
182
    # Both patterns below match the string. The fist uses a greedy
182
    # Both patterns below match the string. The first uses a greedy
183 183
    # quantifier so '.+' matches '<a><b>'; the second uses a lazy
184 184
    # quantifier so '.+?' matches '<a>'.
185 185
    /<.+>/.match("<a><b>")  #=> #<MatchData "<a><b>">