     }
     
     
-    /// Find all matches in scopes.
+    /// Find all matches in the scopes.
     ///
     /// - Parameter
     ///   - block: The Block enumerates the matches.

    }
    
    
    /// Replace all matches.
    ///
    /// - Parameters:
    ///   - replacementString: The string with which to replace.

    
    // MARK: Public Methods
    
    /// The number of capture groups in the regular expression.
    var numberOfCaptureGroups: Int {
        
        return self.regex?.numberOfCaptureGroups ?? 0
    }
    
    
    /// Return the nearest match from the insertion point.
    ///
    /// - Parameter:
    ///   - forward: Whether search forward from the insertion.
    /// - Returns:
    ///   - range: The range of matched or nil if not found.
    ///   - count: The total number of matches in the scopes.
    ///   - wrapped: Whether the search was wrapped to find the result.
    func find(forward: Bool) -> (range: NSRange?, count: Int, wrapped: Bool) {
        
        let selectedRange = self.selectedRanges.first!
