记事本++ - 用重复的单词替换
notepad++ - replace word with duplicate
如何替换
the, cat, walked, down, the, road
和
the [the], cat [cat], walked [walked], down [down], the [the], road [road]
?到目前为止,我已经尝试查找:(.+),替换:\1 [\1]
感谢您的宝贵时间。
匹配一个或多个word characters
\w+
并替换为[=11=] [[=11=]]
See demo at regex101。 [=12=]
与您的正则表达式完全匹配。
如何替换
the, cat, walked, down, the, road
和
the [the], cat [cat], walked [walked], down [down], the [the], road [road]
?到目前为止,我已经尝试查找:(.+),替换:\1 [\1]
感谢您的宝贵时间。
匹配一个或多个word characters
\w+
并替换为[=11=] [[=11=]]
See demo at regex101。 [=12=]
与您的正则表达式完全匹配。