Swift - Replacing emojis in a string with whitespace

前端 未结 6 1419
悲&欢浪女
悲&欢浪女 2020-12-18 11:05

I have a method that detects urls in a string and returns me both the urls and the ranges where they can be found. Everything works perfectly until there are emojis on the s

6条回答
  •  别那么骄傲
    2020-12-18 11:34

    Emojis are classified as symbols by Unicode. Character sets are typically used in searching operations. So we will use Character sets a property that is symbols.

    var emojiString =  "Hey there 

提交回复
热议问题