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

php - How to serve a file for download on WordPress -

how to share virtual sharepoint server and get it in host windows and visual studio? -