           n++
           let resultRange = NSRange(location: result.range.location + offset, length: result.range.length)
           let lengthBeforeReplace = mutable.length
-          regex.replaceMatchesInString(mutable, options: self.defaultMatchingOptions, range: resultRange, withTemplate: repl)
+          regex.replaceMatchesInString(mutable, options: [], range: resultRange, withTemplate: repl)
           offset += mutable.length - lengthBeforeReplace
         }
       }

  
  :param: pattern regular expression pattern string
  :param: string  string to be searched
  :param: flags   Array of NSRegularExpressionOptions objects
  
  :returns: Array of match results as MatchObject instances
  */
  public static func finditer(pattern: String, _ string: String, flags: [RegexObject.Flag] = []) -> [MatchObject] {
    return re.compile(pattern, flags: flags).finditer(string)
  }
  

  :param: pattern  regular expression pattern string
  :param: string   string to be splitted
  :param: maxsplit maximum number of times to split the string, defaults to 0, meaning no limit is applied
  :param: flags    NSRegularExpressionOptions value
  
  :returns: Array of splitted strings
  */
  public static func split(pattern: String, _ string: String, _ maxsplit: Int = 0, flags: RegexObject.Flag = []) -> [String?] {
    return re.compile(pattern, flags: flags).split(string, maxsplit)
  }

