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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -