fix multiline repl regexp; thanks @epidemian