Remove whitespace in as3

后端 未结 4 1815
清歌不尽
清歌不尽 2021-02-19 05:47

How can one remove whitespace from a string in as3?

I would like to be able to remove all carriage returns, spaces, tabs etc.

4条回答
  •  面向向阳花
    2021-02-19 06:43

    If you have access to the AS3 Flex libraries, there's StringUtil.trim(" my string ") too. See here for the docs.

    It doesn't do exactly what the OP was after, but as this was the top answer on google for AS3 String trimming, I thought it'd be worth posting this solution for the more usual Stringy trimmy requirement.

提交回复
热议问题