PhpPeg\TokenRegex::escape PHP Method

escape() static public method

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