Project

General

Profile

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

zzak (zzak _), 02/01/2012 04:35 AM

View differences:

doc/re.rdoc
necessary for overall success. A greedy metacharacter can be made lazy by
following it with <tt>?</tt>.
# Both patterns below match the string. The fist uses a greedy
# Both patterns below match the string. The first uses a greedy
# quantifier so '.+' matches '<a><b>'; the second uses a lazy
# quantifier so '.+?' matches '<a>'.
/<.+>/.match("<a><b>") #=> #<MatchData "<a><b>">
    (1-1/1)