To my knowledge . is not a valid escape anywhere.
If you really want to replace the character . with ., you should write replace( s, ".", "\." )
/ Per Hedbor ()
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