0
typetext controlkey,a
typetext controlkey,c
put remoteclipboard(5) as a tree into myTree
put item 4 of myTree into a
delete every occurrence of "<!--" from a
log a

我的变量 a 将有一个 XML 标记(已注释)值,我正在尝试取消注释 XMl 标记。

4

1 回答 1

0

删除注释时,将 XML 视为文本可能比将其变成树更容易。在命令中使用模式,delete如下所示:

delete every occurrence of <"<!--" then some characters then "-->"> in myXml
于 2020-01-14T10:52:24.230 回答