private function getReplacementCommand($fromText, $toText)
    {
        $characters = ["'", ";", "\\", "/"];
        $escaped = ["\\'", "\\;", "\\\\", "\\/"];
        return sprintf(
            's/%s/%s/g',
            str_replace($characters, $escaped, $fromText),
            str_replace($characters, $escaped, $toText)
        );
    }