hi,
Und warum nicht gleich beide Varianten kombinieren und sich damit sogar den regulären Ausdruck ersparen?
var x = "123456";
x = x.replace(x[3],"X");
Was käme da bei beispielsweise
~~~javascript
var x = "1a3a5a";
x = x.replace(x[3],"X");
heraus?
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }