fork download
  1. <?php
  2.  
  3. $text = 'sdvdvvs ###tab
  4. trololo
  5. ###tab sdvsvsvsv
  6. +++
  7. ###tab
  8. +++
  9. ###tab
  10. ---
  11. ';
  12.  
  13. $text = preg_replace('|###tab.*###tab|s', '', $text);
  14.  
  15. echo $text;
  16.  
  17. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
sdvdvvs 
---