till: replace()

Beitrag lesen

warum funzt folgendes nicht:

----------javascript-------
function soundso(txtorg) {
 var vormals = txtorg;
 var txt = vormals.replace(/zzzzzz/," ");
...usw
}

textorg kommt aus php:
$txtorg=ereg_replace(" ", "zzzzzz", $text);

Also sieht der Text zum Beispiel so aus: "HallozzzzzzLeutz."
Das soll dann per Javascript wieder rückgängig gemacht werden: "Hallo Leutz."

Ich hoffe ihr könnt mir helfen.

ciao, Till