Actions
Bug #5709
closedImprove Regexp documentation
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
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
Like0
Like0Like0