female{{initiator} has named the conversation “{topic}”} male{{initiator} has named the conversation “{topic}”} other{{initiator} has named the conversation “{topic}”}
female{{initiator} has left this conversation} male{{initiator} has left this conversation} other{{initiator} has left this conversation}
这两个字符串用正则表达式 .*?{.*?([^{])*\} 这里只实现了一句,另一句就不行。
通过female,male,other来分成三组 ( ?(female|male|other)({递归{}})形式来实现需要怎么做
实现的效果:
female{{initiator} has left this conversation}
male{{initiator} has left this conversation}
other{{initiator} has left this conversation}
方法里面调用本方法,网上的资料很多