public static function getPattern(string $name): ?string
    {
        if( array_key_exists($name, static::$patterns) ){
            return static::$patterns[$name];
        }

        return null;
    }
public static function getPattern(string $name): ?string
    {
        if( array_key_exists($name, static::$patterns) ){
            return static::$patterns[$name];
        }

        return null;
    }
public static function getPattern ( string $ name ) : ? string { if ( array_key_exists ( $ name , static :: $ patterns ) ) { return static :: $ patterns [ $ name ] ; } return null ; }
Get a regex pattern by name

@param string $name
@return string|null
Get a regex pattern by name