Skip to content

Instantly share code, notes, and snippets.

@nowri
Created October 22, 2012 10:56
Show Gist options
  • Save nowri/3930948 to your computer and use it in GitHub Desktop.
Save nowri/3930948 to your computer and use it in GitHub Desktop.
改行削除
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