public function getCapture($index)
    {
        if (isset($this->captures[$index])) {
            return $this->captures[$index];
        } else {
            return null;
        }
    }
public function getCapture($index)
    {
        if (isset($this->captures[$index])) {
            return $this->captures[$index];
        } else {
            return null;
        }
    }
public function getCapture ( $ index ) { if ( isset ( $ this -> captures [ $ index ] ) ) { return $ this -> captures [ $ index ] ; } else { return null ; } }
Returns the indexth capture from the most recent match, or null if there
is no recent match.

@return string|null
Returns the indexth capture from the most recent match or null if there is no recent match .