Eh, "." is a string literal containing a single dot. "\b" is a string literal containing a single backspace. The first is printed as ".", the second is printed as "\b". Replaceing a dot with a dot of course does nothing.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-09-09 14:43: Subject: Bug in replace
Hi,
Replace doesn't seem to like . :
string s = Pike v7.6 release 13 running Hilfe v3.5 (Incremental Pike Frontend)
string s = "foo.bar.com"; replace(s, ".", ".");
(1) Result: "foo.bar.com"
replace(s, "a", ".");
(2) Result: "foo.b.r.com"
replace(s, "a", "\b");
(3) Result: "foo.b\br.com"
It does the same with 7.2, 7.4
/ David
/ Brevbäraren