src/Jmikola/WildcardEventDispatcher/ListenerPattern.php
private function createRegex($eventPattern)
    {
        $replacements = self::getReplacements();

        return sprintf('/^%s$/', preg_replace(
            array_keys($replacements),
            array_values($replacements),
            preg_quote($eventPattern, '/')
        ));
    }
private function createRegex($eventPattern)
    {
        $replacements = self::getReplacements();

        return sprintf('/^%s$/', preg_replace(
            array_keys($replacements),
            array_values($replacements),
            preg_quote($eventPattern, '/')
        ));
    }
private function createRegex ( $ eventPattern ) { $ replacements = self :: getReplacements ( ) ; return sprintf ( '/^%s$/' , preg_replace ( array_keys ( $ replacements ) , array_values ( $ replacements ) , preg_quote ( $ eventPattern , '/' ) ) ) ; }
Transforms an event pattern into a regular expression.

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