/ Published in: ActionScript 3
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
var textToInsert:String = "the brown fox jumped over the fence";
textToInsert = textToInsert.split("fence").join("river");
the end result is:
the brown fox jumped over the river.
Comments
 Subscribe to comments
                    Subscribe to comments
                
                