src/Behat/Behat/Definition/Pattern/Policy/RegexPatternPolicy.php
private function generateRegex($stepText)
    {
        return preg_replace(
            array_keys(self::$replacePatterns),
            array_values(self::$replacePatterns),
            $this->escapeStepText($stepText)
        );
    }
private function generateRegex($stepText)
    {
        return preg_replace(
            array_keys(self::$replacePatterns),
            array_values(self::$replacePatterns),
            $this->escapeStepText($stepText)
        );
    }
private function generateRegex ( $ stepText ) { return preg_replace ( array_keys ( self :: $ replacePatterns ) , array_values ( self :: $ replacePatterns ) , $ this -> escapeStepText ( $ stepText ) ) ; }
Generates regex from step text.

@param string $stepText

@return string
Generates regex from step text .