因此,基本上,我需要编辑如下内容:
@john TEST TEST TEST
@andrew EXAMPLE EXAMPLE
@geady JK JK JK
我需要替换所有这些,以使它像这样:
@replaced TEST TEST TEST
@replaced EXAMPLE EXAMPLE
@replaced JK JK JK
如何使用记事本++实现此目的?提前致谢!
因此,基本上,我需要编辑如下内容:
@john TEST TEST TEST
@andrew EXAMPLE EXAMPLE
@geady JK JK JK
我需要替换所有这些,以使它像这样:
@replaced TEST TEST TEST
@replaced EXAMPLE EXAMPLE
@replaced JK JK JK
如何使用记事本++实现此目的?提前致谢!
Answers:
@\w+
@replaced
说明:
@ # literally
\w+ # 1 or more word character (i.e. [a-zA-Z0-9_])
You may use \S+ if you want to match any character that is not a space
给定示例的结果:
@replaced TEST TEST TEST
@replaced EXAMPLE EXAMPLE
@replaced JK JK JK