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: <code>str =~ regexp</code> is not the same as
<code>regexp =~ str</code>. Strings captured from named capture groups
are not assigned to local variables in the first case.
=end



-- 
http://bugs.ruby-lang.org/