From: "zzak (Zachary Scott)" Date: 2012-09-25T03:14:13+09:00 Subject: [ruby-core:47677] [ruby-trunk - Bug #7062] Rdoc for String#=~ Issue #7062 has been updated by zzak (Zachary Scott). Assignee changed from drbrain (Eric Hodel) to zzak (Zachary Scott) Thank you stomar, I've discussed this with Eric and will be happy to commit it. ---------------------------------------- Bug #7062: Rdoc for String#=~ https://bugs.ruby-lang.org/issues/7062#change-29717 Author: stomar (Marcus Stollsteimer) Status: Open Priority: Normal Assignee: zzak (Zachary Scott) 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/