在单词的第一个实例之后添加文本 (notepad++)

Add text after the first instance of a word (notepad++)

我有一个这样的短语列表

Mike is Russia, He is 28 y.o.
Elena is UK, She is 30 y.o.

我想在第一个“是”而不是第二个“是”之后添加一个“来自”,所以它变成了:

Mike is from Russia, He is 28 y.o.
Elena is from UK, She is 30 y.o.

您可以使用正则表达式并将奇数出现的“is”替换为“is from”。

请参阅此链接以供参考:

在Notepad++中,在查找和替换中,使用搜索方式正则表达式,在查找中使用 (^.*?(is)) 并在替换中 from

此正则表达式查找从行首到第一个 'is' 发生,然后将找到的文本附加 'from'