Project

General

Profile

Bug #5709

Improve Regexp documentation

Added by sdaubert (Sylvain Daubert) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3p0
[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)

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

Associated revisions

Revision 33977
Added by drbrain (Eric Hodel) about 6 years ago

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

Revision 33977
Added by drbrain (Eric Hodel) about 6 years ago

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

Revision 33977
Added by drbrain (Eric Hodel) about 6 years ago

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

Revision 33977
Added by drbrain (Eric Hodel) about 6 years ago

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

History

#1 Updated by drbrain (Eric Hodel) about 6 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]

#2 [ruby-core:41531] Updated by drbrain (Eric Hodel) about 6 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.

Also available in: Atom PDF