Hi Dirk,
Did you use the Replace method on a string object?? The following is from
my documentation:
stringObj.replace(rgExp, replaceText)
The replace method syntax has these parts:
Part Description
stringObj Required. The String object or literal on which to perform
the replace. This object is not modified by the replace method.
rgExp Required. A Regular Expression object describing what to search for.
replaceText Required. A String object or literal containing the text to
replace for every successful match of rgExp in stringObj.
Usage:
function ReplaceDemo()
{
var r, re;
var s = "The quick brown fox jumped over the lazy yellow dog.";
re = /fox/i;
r = s.replace(re, "pig");
return(r);
}
HtH
Imar
Remarks
At 06:24 PM 11/4/2000 +0100, you wrote:
>does anyone know how to replace "," with "." in a string. the "replace"
>function in JS does not work on my box.
>dirk
>