标签: regex string coldfusion replace
我必须从<和>之间的子字符串替换逗号。
<
>
我尝试了以下内容,
<cfset a = '<span,style="text-decoration:,underline;">testing, process</span></i>' /> <cfset a = REReplace(a,"\<(.*?)\>"," ","ALL")>
答案 0 :(得分:4)
你也许可以试试这个正则表达式:
REReplace(a,",(?=[^\<]*\>)"," ","ALL")
regex101 demo