//
//  NSString+Regex.h
//  Renamer
//
//  Created by Philipp on 9/9/12.
//  Copyright (c) 2012 Philipp Mayerhofer. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Regex)

-(BOOL) isValidRegexPattern;
-(BOOL) isMatchedByRegexPattern:(NSString *)pattern;
-(BOOL) isMatchedByRegexPattern:(NSString *)pattern caseSensitive:(BOOL)caseSensitive;
-(NSString *) stringByReplacingOccurrencesOfRegexPattern:(NSString *)pattern withTemplate:(NSString *)template caseSensitive:(BOOL)caseSensitive error:(NSError **)error;
-(NSString *) stringByReplacingFirstOccurrenceOfRegexPattern:(NSString *)pattern withTemplate:(NSString *)template caseSensitive:(BOOL)caseSensitive error:(NSError **)error;

@end
