Hi,
so klappt es wenn nur einmal < > im String vorkommt, nicht aber wie im Beispiel zweimal < > < > weil ja nur immer das letzte Zeichen das in der foreach Schleife gefunden wird, ersetzt wird.
Hat jemand eine Idee wie man das besser machen kann?
Informiere dich, was es mit der "Gierigkeit" (engl. greediness) von regulaeren Ausdruecken auf sich hat, und wie man sie abstellt.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“