public function match($string, array &$matches = null)
    {
        return $this->filter === false || (\preg_match($this->pattern, $string, $matches) xor $this->invert);
    }
public function match($string, array &$matches = null)
    {
        return $this->filter === false || (\preg_match($this->pattern, $string, $matches) xor $this->invert);
    }
public function match ( $ string , array & $ matches = null ) { return $ this -> filter === false || ( \ preg_match ( $ this -> pattern , $ string , $ matches ) xor $ this -> invert ) ; }
Check whether a string matches the current filter options.

@param string $string
@param array  $matches

@return bool
Check whether a string matches the current filter options .