Tosca 字符串操作模块不替换双引号

问题描述 投票:0回答:2

我正在处理一个要求,我想使用 TC 字符串操作将“替换为 \”。 以下是我传递给 TC String 操作模块的参数。

值:{B[matching_pattern]} 操作:替换、全局 图案 : ” 替换者:“ 结果:matching_pattern 动作模式:buffer

此方法适用于除“

”之外的所有其他字符

任何帮助将不胜感激。

tosca
2个回答
0
投票

tosca中识别双引号的方式不同..可以使用字符串替换功能 {字符串替换[ABC"]["][]}


0
投票

enter image description here

请使用这个 - {TRIM[{STRINGREPLACE[{B[Stringtotest]}][ ][]}]}

并遵循新文档 - https://documentation.tricentis.com/tosca/2320/en/content/tbox/string_operations.htm

语法:{TRIM[输入文本][可选参数]}

© www.soinside.com 2019 - 2024. All rights reserved.