title: Objective-C NSRegularExpressions, finding first occurrence of numbers in a string
body: <p>I'm pretty green at regex with Objective-C. I'm having some difficulty with it.</p>
  
  <pre><code>NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"\\b([1-9]+)\\b" options:NSRegularExpressionCaseInsensitive error:&amp;regError];
  if (regError) {
      NSLog(@"%@",regError.localizedDescription);
  }
  __block NSString *foundModel = nil;
  [regex enumerateMatchesInString:self.model options:kNilOptions range:NSMakeRange(0, [self.model length]) usingBlock:^(NSTextCheckingResult *match, NSMatchingFlags flags, BOOL *stop) {
      foundModel = [self.model substringWithRange:[match rangeAtIndex:0]];
      *stop = YES;
  }];
  </code></pre>
  
  <p>All I'm looking to do is take a string like</p>
  
  <pre><code>150A
  </code></pre>
  
  <p>And get</p>
  
  <pre><code>150
  </code></pre>