From: "zzak (Zachary Scott)" Date: 2012-09-25T03:14:32+09:00 Subject: [ruby-core:47678] [ruby-trunk - Bug #7062] Rdoc for String#=~ Issue #7062 has been updated by zzak (Zachary Scott). Target version set to 2.0.0 ---------------------------------------- Bug #7062: Rdoc for String#=~ https://bugs.ruby-lang.org/issues/7062#change-29718 Author: stomar (Marcus Stollsteimer) Status: Open Priority: Normal Assignee: zzak (Zachary Scott) Category: DOC Target version: 2.0.0 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/