private function createRegex(string $eventPattern): string
    {
        return \sprintf('/^%s$/i', \preg_replace(
            \array_keys(self::$wildcardsSeparators),
            \array_values(self::$wildcardsSeparators),
            \str_replace('\#', '#', \preg_quote($eventPattern, '/'))
        ));
    }
private function createRegex(string $eventPattern): string
    {
        return \sprintf('/^%s$/i', \preg_replace(
            \array_keys(self::$wildcardsSeparators),
            \array_values(self::$wildcardsSeparators),
            \str_replace('\#', '#', \preg_quote($eventPattern, '/'))
        ));
    }
private function createRegex ( string $ eventPattern ) : string { return \ sprintf ( '/^%s$/i' , \ preg_replace ( \ array_keys ( self :: $ wildcardsSeparators ) , \ array_values ( self :: $ wildcardsSeparators ) , \ str_replace ( '\#' , '#' , \ preg_quote ( $ eventPattern , '/' ) ) ) ) ; }
Transforms an event pattern into a regular expression.

@param string $eventPattern

@return string
Transforms an event pattern into a regular expression .