是否可以使用 Microsoft Word 替换其中的维基百科引用?

是否可以使用 Microsoft Word 替换其中的维基百科引用?

是否可以使用 Microsoft Word 替换其中的维基百科引用?

我尝试了以下正则表达式,并在 regex101.com 上进行了验证(并且它是有效的引用正则表达式) 正则表达式

\[[0-9]+\]

以下部分文章摘自 Wikipedia.com

The rainbow pitta was described by the English ornithologist and bird artist John Gould in 1842, which is based on a specimen collected on the Cobourg Peninsula in the Northern Territory of Australia.[2][3] The specific name iris is taken from the Ancient Greek for "rainbow";[4] this is the origin of the common name as well.[5]

The species was once treated as a subspecies of the noisy pitta of eastern Australia,[6] and was also treated as being in a species complex with that species, the elegant pitta and the black-faced pitta,[7] although that arrangement was not universally accepted.[5] According to the 2006 study of the nuclear DNA of the pittas and other Old World suboscines found that its closest relative was the superb pitta of Manus Island off the coast of Papua New Guinea. The same study resulted in the pitta family being split from one genus into three, this species remaining in the genus Pitta.[8]

The species was long thought to be monotypic,[5] but in 1999 the Western Australian population was split into the subspecies P. i. johnstoneiana by Richard Schodde and Ian J. Mason.[3]

我知道 Microsoft Word 有它自己的奇怪的正则表达式(正则表达式在 MS Word 中查找/替换文本不起作用

但是,是否可以使用 Microsoft Word 替换其中的 Wikipedia 引文?如果不行,我可以用什么其他方法替换文章中的这些引文?

奇怪的是,YouTube这表明

使用

[^?^?]

为了

[99]

[]方括号内的两位数字

但它不适用于 Microsoft Word 2016

答案1

匹配括号内数字的正则表达式的正确形式是:

\[[0-9]@\]

@ 用于查找前一个字符的一个或多个出现位置。应启用通配符才能使用此功能。

您可以在 WordMVP 网站上找到更多相关内容:https://wordmvp.com/FAQs/General/UsingWildcards.htm

相关内容