Return to Snippet

Revision: 3345
at July 12, 2007 14:03 by Bonky

Initial Code
var newText:String = "The rain in Spain falls mainly on the plain";
var splitText:Array = newText.split("Spain");
newText = splitText.join("Barcelona"); 
// outputs "The rain in Barcelona falls mainly on the plain"

Initial URL

Initial Description

Initial Title
Search and replace text in a string

Initial Tags
search, replace, array, text

Initial Language