     }
     
     /**
-     Constructor, same as main, but group names can be supplied as var args. Can through an error.
+     Constructor, same as main, but group names can be supplied as var args. Can throw an error.
      
      - parameters:
        - pattern: A pattern to be used with Regex

    }
    
    /**
     Replaces all occurances of the pattern using supplied replacer function.
     
     - parameters:
       - source: String to be matched to the pattern
       - replacer: Function that takes a match and returns a replacement. If replacement is nil, the original match gets inserted instead
     - returns: A string, where all the occurances of the pattern were replaced
     */
    public func replaceAll(in source:String, using replacer:(Match) -> String?) -> String {
        let matches = findAll(in: source)

     
     - parameters:
       - source: String to be matched to the pattern
     - returns: A sequence of found matches. Can be empty if nothing was found.
     */
    func findAll(in source:String) -> MatchSequence
    
