Actions
Bug #7062
closedRdoc for String#=~
Description
=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
Files
Actions
Like0
Like0Like0Like0