Why does ActionScript String replace with curly brackets not work?

111 views Asked by At
trace("A {0} C".replace("{0}","B"));

Does not work.

trace("A %0 C".replace("%0","B"));

Does work.

What's so special about { } curly brackets that they can not be replaced? Escaping also does not work. Anyway to get it to work?

0

There are 0 answers