Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个字符串,例如:funcname("data"),来自楼上。现在我想将 funcname、数据保存在两个 NSString 变量中,即我需要找到介于两者之间""的字符串和之前的字符串'('。
funcname("data")
""
'('
有一个非常有用的类 NSScanner 可以帮助您轻松解析不同的标记。