fork download
  1. <?php
  2.  
  3. $input = "[image: alfa-romeo-giulia-quadrifoglio-2017-01.jpg]\r\n[image: downloadwww.jpg]\r\n\r\n\r\nEmail content With 2 Inline Attachments and 2 another attachments.\r\nTo : me \r\nBcc and Cc : me\r\n";
  4. echo preg_replace('/\[image:[^]]*]/', '', $input);
  5.  
Success #stdin #stdout 0s 82624KB
stdin
Standard input is empty
stdout



Email content With 2 Inline Attachments and 2 another attachments.
To : me 
Bcc and Cc : me