Return to Snippet

Revision: 40378
at February 1, 2011 01:06 by dx0ne


Initial Code
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");

Initial URL
http://www.moock.org/blog/archives/000305.html

Initial Description

                                

Initial Title
replacing line breaks in actionscript

Initial Tags

                                

Initial Language
ActionScript 3