html - RegEx match open tags except XHTML self-contained tags

Mots clés : htmlregexxhtmlhtml

meilleur 1 Réponses html - RegEx match open tags except XHTML self-contained tags

vote vote

91

<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+> 
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+(?<!/\s*)> 

Questions similaires