php - Regex to match all closing HTML tags -


for reason, need remove closing html tags string in php, need regular expression match closing html tags. i'm extremely unexperienced regular expressions, tried using /\<\\.*\>/g , /<\\.*>/g, didn't work. should use instead?

please note want match closing html tags. opening html tags should remain untouched. in advance!

use regex:

</.+?> 

or

/<\/.+?>/ 

that do.

live demo


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -