Skip to content

Commit

Permalink
Add NSRegularExpressionAnchorsMatchLines to regex options
Browse files Browse the repository at this point in the history
  • Loading branch information
xEsk committed Jan 19, 2018
1 parent ae0632d commit 05c7cdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NSString+RegEx.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#import "NSString+RegEx.h"

#define NSRegEx(regex) [NSRegularExpression regularExpressionWithPattern:regex options:NSRegularExpressionCaseInsensitive error:nil]
#define NSRegEx(regex) [NSRegularExpression regularExpressionWithPattern:regex options:NSRegularExpressionCaseInsensitive | NSRegularExpressionAnchorsMatchLines error:nil]

@implementation NSString (RegEx)

Expand Down Expand Up @@ -130,4 +130,3 @@ - (NSString *)stringByReplacingOccurrencesOfRegex:(NSString *)regexString withSt
}

@end

0 comments on commit 05c7cdd

Please sign in to comment.