Question: Gived a string so formed:

```
hello Rose <tag> Micheal </tag> and <tag> July </tag> John. 

```

I want remove all between `<tag>` and `</tag>` and to have in output:

```
hello Rose and John. 

```

how i can it?

Answer: 
I guess you can use:

```
$new_html = preg_replace('%<tag>.*?</tag> ?%si', '', $old_html);

```
If you do not want to use [DOM](http://php.net/manual/en/book.dom.php), you could always use [preg\_replace](http://php.net/manual/en/function.preg-replace.php) to do this.

```
$content = 'hello Rose <tag> Micheal </tag> and <tag> July </tag> John.';

$content = preg_replace('/<tag>[^<]+<\/tag>/i', '', $content);

print $content; // returns: hello Rose and John.

```