/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var newText:String = oldText.replace(/ /g, "\n"); //and here's a snippet to replace all multiple line breaks with a single new line character: var newText:String = oldText.replace(/[ ]+/g, "\n");
URL: http://www.moock.org/blog/archives/000305.html
Comments
