Return to Snippet

Revision: 29480
at July 30, 2010 04:37 by cessnajumpin


Initial Code
var theContent:String = “I hate when content has words like, ‘damn’ in it”
theContent = theContent.split(“damn”).join(“darn”);
trace(theContent); // outputs: I hate when content has words like, ‘darn’ in it

Initial URL


Initial Description
All credit for this goes to iheartactionscript.com
I'm just copying it here so I won't have to remember where I found it

Initial Title
replacing words within strings

Initial Tags
replace

Initial Language
ActionScript 3