 extension String {
 
-  // MARK: Replacing the first match
+  // MARK: Replacing the first match (mutating)
 
   /// If `regex` matches at least one substring, replace the first match with
   /// `template`.

  public mutating func replaceAllMatching(pattern: String, with template: String) {
    replaceAllMatching(Regex(pattern), with: template)
  }

  /// Returns a new string where each substring matched by `regex` is replaced
  /// with `template`.

    replaceFirstMatching(Regex(pattern), with: template)
  }



  // MARK: Replacing the first match (nonmutating)

  /// Returns a new string where the first match of `regex` is replaced with
  /// `template`.
  ///
