Hallo Marc.
Ich hatte das vorgschlagen, weil meines Wissens nach die preg-Funktionen schneller sind.
Dein Wissen entspricht nicht dem meinigen. Stringfunktionen sind per se schneller als reguläre Ausdrücke. Benchmarks dazu finden sich im hiesigen Archiv mehr als genug.
Vom Aufwand her - naja, er braucht ja nur ein Pattern...
Bzw. eine einfache Zeichenkette, ja.
Einen schönen Mittwoch noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]