fork(1) download
  1. <?php
  2.  
  3. $value='0.00%';
  4. $str = 'Price: 0.00%';
  5. echo preg_replace('/(?<!\w)' . preg_quote($value, '/') . '(?!\w)/i', '- ', $str);
Success #stdin #stdout 0.02s 24636KB
stdin
Standard input is empty
stdout
Price: -