1orig = "here is some text", repl = "<FOO&BAR \q \ \\ \& \\& \\\&>" 2result is "here is <FOOsomeBAR \q \ \ & \some \&> text" 3