var str = `abc123`; str.replace(/.+/g, line => console.log(line));
Standard input is empty
abc 123
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!