FoxLift
FoxLift

Reputation: 433

As3 Split on a Carriage Return

Can anyone tell me how to use the split() function in as3 to split Strings with Carriage Returns?

This is usually done with " \n ", but it doesent seem to work in this case, with or without de quotes.

Upvotes: 9

Views: 6863

Answers (1)

João Mosmann
João Mosmann

Reputation: 2902

Try spliting like this

var yourArray:Array = YourString.split(String.fromCharCode(13));

Upvotes: 13

Related Questions