/ Published in: ActionScript
- 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"
You need to login to post a comment.