src/Behat/Behat/Definition/Pattern/PatternTransformer.php
public function transformPatternToRegex($pattern)
    {
        if (!isset($this->patternToRegexpCache[$pattern])) {
            $this->patternToRegexpCache[$pattern] = $this->transformPatternToRegexWithSupportedPolicy($pattern);
        }

        return $this->patternToRegexpCache[$pattern];
    }
public function transformPatternToRegex($pattern)
    {
        if (!isset($this->patternToRegexpCache[$pattern])) {
            $this->patternToRegexpCache[$pattern] = $this->transformPatternToRegexWithSupportedPolicy($pattern);
        }

        return $this->patternToRegexpCache[$pattern];
    }
public function transformPatternToRegex ( $ pattern ) { if ( ! isset ( $ this -> patternToRegexpCache [ $ pattern ] ) ) { $ this -> patternToRegexpCache [ $ pattern ] = $ this -> transformPatternToRegexWithSupportedPolicy ( $ pattern ) ; } return $ this -> patternToRegexpCache [ $ pattern ] ; }
Transforms pattern string to regex.

@param string $pattern

@return string

@throws UnknownPatternException
Transforms pattern string to regex .