trace(("Flash").replace(/(.{2}).(.*)/, "$1e$2"));

// Flesh

Perhaps not the answer, I know ;)

Kenneth Kawamoto

Paul Steven wrote:
Probably something really simple but can't for the life of me recall the syntax 
to change a particular character of a string.

For example if I have the word "Flash" and want to change the letter "a" to an "e", I was 
hoping there was a function like setCharAt(2, "e");

Btw I am coding in AS3.


Flashcoders mailing list

Reply via email to