object Main extends App { val s = "pow(10,3) + pow(10,3) + pow(10,3)"; print(s.replace("pow(10,3)", "1000"));}
Standard input is empty
1000 + 1000 + 1000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!