在使用UE编辑的时候,有时替换的字符串依赖于搜索字符串,这时需要使用记录变量
如
hi, the sum is 1,300
需要把数字前面的逗号, 去掉
,[0-9] 替换为 原[0-9]
替换方法
,^([0-9]^)
^1
在有点版本UE中,应这样设置:正则表达式 选中, 全词匹配匹配 不选中
^(...^)
Brackets or tags an expression to use in the replace command. A regular expression may have up to 9 tagged expressions, numbered according to their order in the regular expression.