Swift: How to get everything after a certain set of characters

后端 未结 4 1114
遇见更好的自我
遇见更好的自我 2020-12-25 11:03

Given the following string:

var snippet = \"1111 West Main Street Beverly Hills, CA 90210 Phone: 123.456.7891\"

How can I extract everythin

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 11:38

    Just use func substringFromIndex but increase the index by the length of "Phone:"

提交回复
热议问题