input="This text contains 'single-quotes'."; pattern=/'.*'/; print(String.replace(input, pattern, "nothing"));
Standard input is empty
This text contains nothing.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!