fork(6) download
  1. <?php
  2. $variable = "This is something that I don't want to delete<blockquote>This is I want to delete </blockquote>";
  3.  
  4. $variable = preg_replace('/<blockquote>.+<\/blockquote>/siU', '', $variable);
  5.  
  6. echo htmlentities($variable);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
This is something that I don't want to delete&lt;blockquote&gt;This is I want to delete &lt;/blockquote&gt;This is something that I don't want to delete