Revision: 28607
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 10, 2010 06:17 by adrianparr
Initial Code
function removeCarriageReturnsAndNewLines($myString:String):String { var newString:String; var findCarriageReturnRegExp:RegExp = new RegExp("\r", "gi"); newString = $myString.replace(findCarriageReturnRegExp, ""); var findNewLineRegExp:RegExp = new RegExp("\n", "gi"); newString = newString.replace(findNewLineRegExp, ""); return newString; }
Initial URL
Initial Description
Initial Title
AS3 Remove Carriage Returns And New Lines Using Regular Expressions
Initial Tags
regex, replace, regexp
Initial Language
ActionScript 3