public function accept($input) { if (preg_match($this->getExpression(), $input, $matches)) { return true; } return false; }