<?php $re = "/@@.*?@@/"; $str = "@@lang_eng_begin@@test@@lang_eng_end@@ "; echo preg_replace($re, "", $str);
Standard input is empty
test
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!