title: Text extraction with NSRegularExpression
body: <p>Given a <code>NSString *test = @"...href="/functions?q=KEYWORD\x26amp...";</code></p>
  
  <p>How can I extract the word <strong>KEYWORD</strong> from the string using NSRegularExpression?<br>
  I have tried with the following NSRegularExpression on iOS SDK 4.2 but it is not able to find the text. Does the following code looks okay?</p>
  
  <pre><code>NSRegularExpression *testRegex = [NSRegularExpression regularExpressionWithPattern:@"(?&lt;=href=\"\\/functions\\?q=).+?(?=\\x26amp])" options:0 error:nil];
  NSRange result = [testRegex rangeOfFirstMatchInString:test options:0 range:NSMakeRange(0, [test length])];
  </code></pre>