Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

Remove everything between <[ and ]>

I want to remove all instances of everything between <[ and ]>

This is a variation of this solution:
https://www.experts-exchange.com/questions/23837938/Remove-everything-between-and.html
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hankknight

ASKER

try:
echo preg_replace( '#<\[[^\]]*\]>#','', $str);

Open in new window