Created
October 22, 2012 10:56
-
-
Save nowri/3930948 to your computer and use it in GitHub Desktop.
改行削除
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function removeParagraphString(str:String):String | |
{ | |
//操作したい文字列が入るよ | |
//\nを削除 | |
str= str.replace( /\n/g, "" ); | |
//\rを削除 | |
str= str.replace( /\r/g, "" ); | |
return str; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment