Ah yes indeed, I understand now, thank you all.
/ David
Per Hedbor () @ Pike (-) developers forum wrote:
Are you perhaps fooled by the fact that hilfe writes valid pike-strings?
Try write( replace( s, "a", "\b" ) + "\n" )
/ Per Hedbor ()
Previous text:
2004-09-09 14:46: Subject: Re: Bug in replace
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"
And just in case people would wonder:
replace(s, ".", "\.");
(4) Result: "foo\.bar\.com"
/ David
/ Brevbäraren