src/Condition.php
public static function match($value, $comparable)
    {
        if (is_array($comparable) || is_array($value) || is_object($comparable) || is_object($value)) {
            return false;
        }
        
        $comparable = trim($comparable);

        if (preg_match("/^$comparable$/", $value)) {
            return true;
        }

        return false;
    }
public static function match($value, $comparable)
    {
        if (is_array($comparable) || is_array($value) || is_object($comparable) || is_object($value)) {
            return false;
        }
        
        $comparable = trim($comparable);

        if (preg_match("/^$comparable$/", $value)) {
            return true;
        }

        return false;
    }
public static function match ( $ value , $ comparable ) { if ( is_array ( $ comparable ) || is_array ( $ value ) || is_object ( $ comparable ) || is_object ( $ value ) ) { return false ; } $ comparable = trim ( $ comparable ) ; if ( preg_match ( "/^$comparable$/" , $ value ) ) { return true ; } return false ; }
Match with pattern

@param mixed $value
@param string $comparable

@return bool
Match with pattern