How to go through a String and parse all ints in it in Swift?

前端 未结 0 633
再見小時候
再見小時候 2021-01-31 02:35

For example, if I have the string "Hello4 my name 62 is World522. 6" I\'d want to return all integers (4, 62, 522, 6).

I found some solutions in older versions

相关标签:
回答
  • 消灭零回复
提交回复
热议问题