PhpPeg\TokenRegex::escape PHP 메소드

escape() 정적인 공개 메소드

static public escape ( $rx )
    static function escape($rx)
    {
        $rx = str_replace("'", "\\'", $rx);
        $rx = str_replace('\\\\', '\\\\\\\\', $rx);
        return $rx;
    }