title: rgb(34, 34, 34) to UIColor
body: <p>I have a RGB string in the form <code>rgb(34, 34, 34)</code>. I want to parse it to a <code>UIColor</code> using iOS. I believe I need a regex for this, but I can't seem to crack it. This is what I have so far. </p>
  
  <pre><code>NSString *regExString = @"(.*?)rgb\((\d+), (\d+), (\d+)\)";
  
  NSError *error = nil;
  
  NSRegularExpression *regEx = [NSRegularExpression regularExpressionWithPattern:regExString
                                                                         options:NSRegularExpressionCaseInsensitive error:&amp;error];
  
  NSArray *matches = [regEx matchesInString:backgroundColorString options:NSRegularExpressionCaseInsensitive
                                          range:NSMakeRange(0, backgroundColorString.length)];
  </code></pre>
  
  <p>If anybody could send me in the right direction, that would be great.</p>