/ Published in: ActionScript 3
URL: http://www.moock.org/blog/archives/000305.html
Expand |
Embed | Plain Text
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");
You need to login to post a comment.
