Bug #5709
closed
Improve Regexp documentation
Added by sdaubert (Sylvain Daubert) about 13 years ago.
Updated about 13 years ago.
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
- 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]
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
Like0
Like0Like0