NSString(RegexReplace) Category Reference
Declared in | NSString+RegexReplace.h |
Tasks
-
– stringByReplacingRegularExpression:withString:options:
Quickly replace a regular expression match with another string.
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.
See Also
Declared In
NSString+RegexReplace.h