Revision: 58062
Updated Code
at June 22, 2012 20:02 by adrianparr
Updated Code
private function removeTabsAndNewLines($str:String):String { var rex:RegExp = /(\t|\n|\r)/gi; $str = $str.replace(rex,''); return $str; }
Revision: 58061
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 22, 2012 19:30 by adrianparr
Initial Code
private function removeTabsAndNewLines($str:String):String { var rex:RegExp = /[\t ]*/gim; $str = $str.replace(rex,''); return $str; }
Initial URL
Initial Description
If you load text in from an XML file that is wrapped in CDATA tags using 'XML.ignoreWhitespace = true' does not work. This function removes the tabs and linebreaks. To have linebreaks use '<br/>' tags.
Initial Title
AS3 Remove Tabs and NewLine Characters
Initial Tags
Initial Language
ActionScript 3