fork download
  1. <?php
  2.  
  3. $s = "<div>this is the variable</div>";
  4. echo preg_replace("/<div>(.*?)<\/div>/", "$1", $s);
  5. ?>
Success #stdin #stdout 0.03s 25764KB
stdin
Standard input is empty
stdout
this is the variable