如何用 Guillemet 替换引号

How to replace quotation mark with Guillemet

我想使用 Microsot Word 通配符或正则表达式将引号转换为 Guillemet。

例子

之前

"Quotation marks", also called "quotes", "quote marks", quotemarks, speech marks, inverted commas or talking marks

之后

«Quotation marks», also called «quotes», «quote marks», quotemarks, speech marks, inverted commas or talking marks

欢迎任何帮助!

匹配文本和引号的正则表达式:

"(.*?)"

然后你可以用第 1 组替换(通常 </code> 取决于你使用的是什么),并用 guillemets 包围。</p> <p>见<a href="https://regex101.com/r/lzDpJz/1" rel="nofollow noreferrer">this in action</a>。</p> <p><em>关于正则表达式的注释:</em> 我正在使用 <code>*? 量词(或 惰性量词 ),它在零和零之间匹配无限次,尽可能少,根据需要扩展。