change regex to end on Ctrl-Z (i.e. \x1A), exclude from param matching group