php - How to use preg_replace in case of [ ] Motopress Wordpress -
i have text
[row]something[more]something[/more][/row].
this generated motopress plugin wordpress.
how can remove [] , [/] tags string?
try this: working example
$input_lines = "[row]something[more]something[/more][/row]"; $op = preg_replace("/(\[.[^\]]*\])/", " ", $input_lines);
Comments
Post a Comment