Project

General

Profile

Actions

Bug #5709

closed

Improve Regexp documentation

Added by sdaubert (Sylvain Daubert) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3p0
Backport:
[ruby-core:41479]

Description

Improve Regexp documentation:

  • add a section to explain differences between =~ operator and #match
  • in Options section, explain how use options with Regexp.new
  • add a section about special global variables ($~ and so on)

Files

0001-Improve-Regexp-documentation.patch (4.48 KB) 0001-Improve-Regexp-documentation.patch sdaubert (Sylvain Daubert), 12/05/2011 02:26 AM
Actions #1

Updated by drbrain (Eric Hodel) almost 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33977.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • doc/re.rdoc: Document difference between match and =~, options with
    Regexp.new and global variables. Patch by Sylvain Daubert.
    [Ruby 1.9 - Bug #5709]

Updated by drbrain (Eric Hodel) almost 13 years ago

I altered the wording on =~ mentioning Range and String because the operator is generic and may be overridden to perform other types of pattern matching.

Actions

Also available in: Atom PDF

Like0
Like0Like0