Hallo Gunnar™.
Öhm, die Flags für die replace-Methode gehören doch in das dritte Argument?
Bei einem regulären Ausdruck aber nicht:
This parameter is only used if the first parameter is a string.
Das würde aber darauf hindeuten, dass eine einfache Zeichenkette als erstes Argument intern dennoch als regulärer Ausdruck verarbeitet wird, sonst gäbe es ja keine Möglichkeit, Flags zu verwenden.
Einen schönen Dienstag 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]