function tt()
{
const x = '王总'
const y = '小王'
for (const i of ActiveDocument.Paragraphs) {
const t = i.Range.Text
let j = 0
let k = false
let r = ''
while (j < t.length) {
if (t.at(j).match(/"|“|”/)) k = !k
if (k && (t.substr(j, x.length) === x)) {
r += y
j += x.length
}
else {
r += t.at(j)
j++
}
}
i.Range.Text = r
}
}
创作者俱乐部成员
创作者俱乐部成员