Matchers/NewMatcher.php
private function runFilter($filter, $parameter)
    {
        if (!strstr($filter, '(') && !strstr($filter, ')')) {
            if (!$filter = $this->getFilter($filter)) {
                return false;
            }
        }

        return preg_match('@' . $filter . '@si', $parameter) ?: false;
    }
private function runFilter($filter, $parameter)
    {
        if (!strstr($filter, '(') && !strstr($filter, ')')) {
            if (!$filter = $this->getFilter($filter)) {
                return false;
            }
        }

        return preg_match('@' . $filter . '@si', $parameter) ?: false;
    }
private function runFilter ( $ filter , $ parameter ) { if ( ! strstr ( $ filter , '(' ) && ! strstr ( $ filter , ')' ) ) { if ( ! $ filter = $ this -> getFilter ( $ filter ) ) { return false ; } } return preg_match ( '@' . $ filter . '@si' , $ parameter ) ? : false ; }
execute a filter

@param string $filter
@param string $parameter
@return bool|int
execute a filter