fork(1) download
  1. <?php
  2.  
  3. $re = '/(?<!\w)stackoverflow=""(?!\w)/';
  4. $str = ",stackoverflow=\"\" xxx\nxxx stackoverflow=\"\" xxx\nxxx stackoverflow=\"\"\nstackoverflow=\"\" xxx";
  5. echo preg_replace($re, "NEW=\"\"", $str);
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
,NEW="" xxx
xxx NEW="" xxx
xxx NEW=""
NEW="" xxx