/ Published in: ActionScript
Busca y reemplaza un texto por otro en un string.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function replaceString(myString:String, replaceThis:String, withThis:String):String { var split_ar = myString.split(replaceThis) myString = split_ar.join(withThis) return myString; } textoVar = replaceString ("hola pepe, como estas"," ","_");