Hallo Struppi.
Das geht dann widerrum auch mit indexOf()
Das stimmt natürlich. Gibt es da von der Effektivität her einen Unterschied? oder ist es einfach gehopst wie gesprungen?
String operationen sind immer schneller, als Reguläre Ausdrücke.
Die search-Methode nimmt auch normale Strings entgegen, auch wenn dies nicht dokumentiert zu sein schein.
Einen schönen Samstag 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]