NSRegularExpression: substitua o texto do URL por tags <a>

Atualmente, estou usando um UIWebView para estilizar postagens do twitter. Certamente, alguns tweets contêm URLs, mas não os<a> Tag. Consigo extrair o URL, mas não sei como adicionar o<a> tags e coloque novamente no tweet. Usarei a mesma abordagem aqui para adicionar links aos nomes de usuário @ e #hashtags. Aqui está um exemplo do meu código atual:

NSString *tweet = @"Sync your files to your Google Docs with a folder on your desktop.  Like Dropbox.  Good choice, Google storage is cheap. http://ow.ly/4OaOo";

NSRegularExpression *expression = [NSRegularExpression regularExpressionWithPattern:@"(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))" options:NSRegularExpressionCaseInsensitive error:NULL];

NSString *match = [tweet substringWithRange:[expression rangeOfFirstMatchInString:tweet options:NSMatchingCompleted range:NSMakeRange(0, [tweet length])]];
NSLog(@"%@", match);// == http://ow.ly/4OaOo

Finalmente, eu gostaria que a sequência final fosse assim:

Sync your files to your Google Docs with a folder on your desktop. Like Dropbox. Good choice, Google storage is cheap. <a href="http://ow.ly/4OaOo>http://ow.ly/4OaOo</a>

Qualquer ajuda seria muito apreciad

questionAnswers(2)

yourAnswerToTheQuestion