fork download
  1. <?php
  2.  
  3. $str = "LIVR DEC 20 23 \$é**é$01\$";
  4. $result = preg_replace("/\\\$[^ ]+\\\$/u", "", $str);
  5. echo $result;
Success #stdin #stdout 0.02s 82944KB
stdin
Standard input is empty
stdout
LIVR DEC 20 23