我有一个表中的Objective-C方法:
"hideAlertWithBundleId:(NSString *)bundleId uuid:(NSString *)uuid"
但也可以这样写出来:
"hideAlertWithBundleId: (NSString *) bundleId uuid: (NSString *) uuid"
我想摘录:
["hideAlertWithBundleId:(NSString *)bundleId", "uuid:(NSString *)uuid"]
我在使用纯Python和正则表达式实现这一点时遇到了困难,但我知道这是可能的
请记住,括号中的值可以是任何。因此,我可能还需要分析:
"findImageWithKey:(id)arg1 inGroup:(id)arg2 andInfo:(img*)arg3"
可以假定字符串中没有换行符。解决方案应该适用于具有任意数量参数的方法
我对Objective-C不太熟悉,但如果我正确理解了这个问题,那么:
结果:
相关问题 更多 >
编程相关推荐