Refer to Capture Subpattern Reference Syntax for additional information regarding search and replace.
When specifying a regular expression, the regular expression can be either a RKRegex object or a NSString containing the text of a regular expression. When specified as a NSString, as determined by sending isKindOfClass:, the receiver will convert the string to a RKRegex object via regexWithRegexString:options:.
Objects are sent isMatchedByRegex: to determine whether or not they are matched by the specified regular expression.
This method is identical to stringByMatching:replace:withReferenceString: except that this method modifies the mutable receiver directly instead of creating a new NSString that contains the result of the search and replace.