Declared in NSString+RegexReplace.h

Tasks

Instance Methods

stringByReplacingRegularExpression:withString:options:

Quickly replace a regular expression match with another string.

- (NSString *)stringByReplacingRegularExpression:(NSString *)pattern withString:(NSString *)replace options:(NSRegularExpressionOptions)options

Parameters

pattern

A regular expression pattern.

replace

A string to replace all matches of the regular expression with.

options

Options for the regular expression.

Declared In

NSString+RegexReplace.h