Reputation: 3721
I have this kind of strings...
---Quote (Originally by cyberpig)--- I thought is use hair dryer on the GPU? Put whole card in oven PCB won't melt meh? ---End Quote--- back in my old company, when we do such troubleshooting we usually use a blower/dryer meant for pcb components.
from those, I want to strip out all the text between ---Quote
and Quote---
, including them.
Kindly provide a PHP function please.
Thx
Upvotes: 0
Views: 49
Reputation: 13614
Try this one:
preg_replace("#---Quote(.|\n)*Quote---#m", "", $str);
Upvotes: 0