title: RegEx .+ does not include space and new line characters
body: <p>My RegEx </p>
  
  <pre><code>\\s*[+-].+\\s*\\n*\\s*[{] 
  </code></pre>
  
  <p>is not able to find below method of UITableView, but it reads all other methods written in a single line.</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView 
  commitEditingStyle:(UITableViewCellEditingStyle)editingStyle 
  forRowAtIndexPath:(NSIndexPath *)indexPath
  {
  </code></pre>
  
  <p>I want to add comment on each method of a file, and to achieve that i am trying to read all method through RegEx.</p>
  
  <p>Any help?</p>
  
  <p><em>Full Code</em></p>
  
  <p><strong>Test.txt</strong></p>
  
  <pre class="lang-c prettyprint-override"><code>- (id)initWithNibName   :   (NSString *)  nibNameOrNil
                 bundle  : (NSBundle  *)   nibBundleOrNil
  {
  }
  
  
       - (void)tableView:(NSTableView *)tableView
  
          commitEditingStyle:(NSString*)editingStyle
  
              forRowAtIndexPath:(NSIndexPath *)indexPath
  
  
  {
  
  }
  
   - (void)tableView:(UITableView *)tableView 
  
      commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
  
      forRowAtIndexPath:(NSIndexPath *)indexPath
  
  
  {
  
  }
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code>NSString *filepath = [[NSBundle mainBundle] pathForResource:@"Test" ofType:@"txt"];
  NSError *err = nil;
  
  // Total methods 13
  NSString *content = [NSString stringWithContentsOfFile:filepath encoding:NSUTF8StringEncoding error:&amp;err];
  
  //NSRegularExpressionDotMatchesLineSeparators | NSRegularExpressionAllowCommentsAndWhitespace
  NSRegularExpressionOptions regexOptions =  NSRegularExpressionCaseInsensitive;
  NSString *pattern = nil;
  
  // matches 6
  //pattern = [NSString stringWithFormat:@"\\s*[+-].*[{]"];
  
  // matches 10
  pattern = [NSString stringWithFormat:@"\\s*[+-].*\\s*\\n*\\s*[{]"];
  
  NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:regexOptions error:&amp;err];
  if (err) {
      NSLog(@"Couldn't create regex with given string and options");
  }
  
  NSRange visibleTextRange = NSMakeRange(0, content.length);
  NSInteger count = [regex numberOfMatchesInString:content options:0 range:visibleTextRange];
  NSLog(@"Total Found: %ld", (long)count);
  </code></pre>