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: <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/