Ich hab ein rießen Problem und versuche mich schon ne Weile daran ohne eine Lösung.
Ich muss aus einem HTML-File die Attribute der HTML-Tags entfernen und suche den passenden regulären Ausdruck dafür.
Hier ein Beispiel
Code: Alles auswählen
<TR VALIGN=TOP>
<TD WIDTH=215>
<H1 LANG="de-DE" CLASS="western">Sonnabend, 04.09. 14.30 Uhr</H1>
</TD>
<TD WIDTH=132>
<P LANG="de-DE" CLASS="western"><FONT SIZE=3>Seußlitz</FONT></P>
</TD>
<TD WIDTH=87>
<P LANG="de-DE" CLASS="western"><FONT SIZE=3>Niederlom.</FONT></P>
</TD>
<TD WIDTH=69>
<P LANG="de-DE" CLASS="western"><FONT SIZE=3>15.00 Uhr</FONT></P>
</TD>
<TD WIDTH=85>
<P LANG="de-DE" CLASS="western" ALIGN=CENTER><FONT SIZE=3>2,00 /
1,00</FONT></P>
</TD>
</TR>
Code: Alles auswählen
<TR>
<TD>
<H1>Sonnabend, 04.09. 14.30 Uhr</H1>
</TD>
<TD>
<P><FONT>Seußlitz</FONT></P>
</TD>
<TD>
<P><FONT>Niederlom.</FONT></P>
</TD>
<TD>
<P><FONT>15.00 Uhr</FONT></P>
</TD>
<TD>
<P><FONT>2,00 /
1,00</FONT></P>
</TD>
</TR>
Außerdem: Wie würde ein Ausdruck lauten um einzelne Tags zu entfernen?
Also weg mit <font><p><h1> etc...