<?php function remove($t) { return preg_replace('/\$[0-9]+!/','',$t); } echo remove("Hello $23! world $2! today"); ?>
Standard input is empty
Hello world today
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!