请教一个html格式字符串gsub替换的问题,谢谢!
下面这个是HTML格式字符串,想在"("后、")"前和","后加上换行"<br>",编译错误,报"invalid pattern capture",请问下高手们怎样使用才能达到效果,谢谢。local _func = "test(string _name,int32 _age)"
_func = string.gsub(_func,"(","(<br>")
_func = string.gsub(_func,")","<br>)")
_func = string.gsub(_func,",",",<br>")
[此贴子已经被作者于2019-11-8 09:38编辑过]