From: "stomar (Marcus Stollsteimer)" Date: 2012-09-24T04:46:48+09:00 Subject: [ruby-core:47668] [ruby-trunk - Bug #7062][Open] Rdoc for String#=~ Issue #7062 has been reported by stomar (Marcus Stollsteimer). ---------------------------------------- Bug #7062: Rdoc for String#=~ https://bugs.ruby-lang.org/issues/7062 Author: stomar (Marcus Stollsteimer) Status: Open Priority: Normal Assignee: drbrain (Eric Hodel) Category: DOC Target version: ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] =begin This patch clarifies the different behaviour for str =~ regexp and regexp =~ str regarding captured strings and assigning to local variables. (See also issue #7042.) Added text: Note: str =~ regexp is not the same as regexp =~ str. Strings captured from named capture groups are not assigned to local variables in the first case. =end -- http://bugs.ruby-lang.org/