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

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -