title: need regular expression in objective-c
body: <p>I have a problem to create the right regular expression for the result I needed. I looked everywhere and tried by myself but I got stuck and this what I get now:</p>
  <pre><code>NSString *searchText = @&quot;{  124.0, 0.90, 0.556 }  { 127.9, 0.9764, 0.456 }&quot;; 
  NSRegularExpression *regex = [NSRegularExpression  regularExpressionWithPattern:@&quot;\\{(.+\\d+[\\.]\\d+.+)\\}&quot; options:0 error:nil];
  
  
  NSArray *matches = [regex matchesInString:searchText
                                    options:0
                                      range:NSMakeRange(0, searchText.length)];
  
  for (NSTextCheckingResult *r in matches)
  {
      NSRange numberRange = [r rangeAtIndex:1];
      NSLog(@&quot;%@&quot;, [searchText substringWithRange:numberRange]);
  } 
      result
      124.0, 0.90, 0.556 }  { 127.9, 0.9764, 0.456  
      instead off 2 times a numberRange without curlybraces
  
      124.0, 0.90, 0.556
      127.9, 0.9764, 0.456
  </code></pre>