hankknight
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
This is a variation of this solution:
https://www.experts-exchange.com/questions/23837938/Remove-everything-between-and.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try:
echo preg_replace( '#<\[[^\]]*\]>#','', $str);
ASKER
I have posted a related question here:
https://www.experts-exchange.com/questions/23838463/Regex-to-replace-content.html