For some reason, I need to remove all closing HTML tags from a string in PHP, so I need a Regular Expression to match all closing HTML Tags. I'm extremely unexperienced with Regular Expressions, so I tried using /\<\\.*\>/g
and /<\\.*>/g
, but that didn't work. What should I use instead?
Please note that I only want to match closing HTML tags. Opening HTML Tags should remain untouched. Thanks in advance!