- (NSString *)camelCaseString { static NSRegularExpression *regex = nil; if (!regex) { regex = [[NSRegularExpression alloc] initWithPattern:@"(?:_)(.)" options:0 error:nil]; } // Use regex... return string; }