Project

General

Profile

Bug #7062 ยป rdoc_for_string_match.patch

stomar (Marcus Stollsteimer), 09/24/2012 04:46 AM

View differences:

string.c (Arbeitskopie)
2699 2699
 *  <i>obj.=~</i>, passing <i>str</i> as an argument. The default
2700 2700
 *  <code>=~</code> in <code>Object</code> returns <code>nil</code>.
2701 2701
 *
2702
 *  Note: <code>str =~ regexp</code> is not the same as
2703
 *  <code>regexp =~ str</code>. Strings captured from named capture groups
2704
 *  are not assigned to local variables in the first case.
2705
 *
2702 2706
 *     "cat o' 9 tails" =~ /\d/   #=> 7
2703 2707
 *     "cat o' 9 tails" =~ 9      #=> nil
2704 2708
 */