Extract values between parenthesis from NSString

后端 未结 4 866
一整个雨季
一整个雨季 2021-02-09 21:56

I have an NSString that will be something like \"xxxx (yyyyy)\" where x and y can be any character. I\'d like to extract just the y from inside the parenthesis. I managed to ext

4条回答
  •  忘了有多久
    2021-02-09 22:23

    Scan up to the ‘(’, then scan it, then scan up to the ')'. The result of the last scan is yyyy.

提交回复
热议问题