title: objectivec trying to get extracted string group from regex
body: <p>i try to extract simple string from string with out success it looks simple but the result alwways as 
  the string<br>
  here is what i have :</p>
  
  <pre><code>-(NSString*) ExtractArtistNameFromString:(NSString*) line
  {
  
      NSString* substringForMatch = @""   
      NSError *error = NULL;
      NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"\\d+\\s+(.*)"
                                                                          options:NSRegularExpressionCaseInsensitive
                                                                          error:&amp;error];
  
      if (error) {
          NSLog(@"Error:%@", error);  
      }
  
      NSArray *matches = [regex matchesInString:line
                                                options:0
                                                range:NSMakeRange(0, [line length])]; 
  
      NSUInteger elements = [matches count];
      NSLog(@"numberOfMatches:%u",elements);
  
      if(elements &gt; 0)
      {
  
          for(NSTextCheckingResult *match in matches)
          {
              NSString* substringForMatch = [line substringWithRange:match.range];
              NSUInteger slen = [substringForMatch length];
              NSLog(@"Extracted  : %@",substringForMatch);
              NSLog(@"%u",slen);
              NSLog(@"%@",substringForMatch);
          }        
      }
      return substringForMatch;
  } 
  </code></pre>
  
  <p>input string is :</p>
  
  <blockquote>
    <p>1 Barsotti, Marcel</p>
  </blockquote>
  
  <p>what im trying to extract is the name that is : <strong>Barsotti, Marcel</strong>  </p>
  
  <p>and when i run the app i get this result :</p>
  
  <pre><code>2013-01-29 11:31:24.056 file_parser[2496] numberOfMatches:1
  2013-01-29 11:31:24.062 file_parser[2496] Extracted  : 1        Barsotti, Marcel
  2013-01-29 11:31:24.064 file_parser[2496] 18
  2013-01-29 11:31:24.066 file_parser[2496] 1     Barsotti, Marcel
  </code></pre>
  
  <p>im using GNUsetup in windows , the make command is:</p>
  
  <blockquote>
    <p>make CC=clang</p>
  </blockquote>