<?php $str = 'LIVR DEC 20 23 $é**é$01$';$result = preg_replace('/\$[^ ]+\$/u', "", $str);echo $result;
Standard input is empty
LIVR DEC 20 23
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!