
例:第 1 行是這樣的
Adobe Ceiling EngramEntry_AdobeCeiling_C 106 5 15
我想把所有東西都拿出來,除了:
EngramEntry_AdobeCeiling_C
答案1
答案2
一定要更換僅有的包含 EngramEntry_AdobeCeiling_C
但不包含的行blah_EngramEntry_AdobeCeiling_C_blah
,您必須使用單字邊界:
- Ctrl+H
- 找什麼:
^.+?\b(EngramEntry_AdobeCeiling_C)\b.+$
- 用。
$1
- 查看 相符
- 查看 環繞
- 查看 正規表示式
- 取消選取
. matches newline
- Replace all
解釋:
^ # beginning of line
.+? # 1 or more any character but newline, not greedy
\b # word boundary, make sure we haven't word character just before
(EngramEntry_AdobeCeiling_C) # group 1, literally
\b # word boundary, make sure we haven't word character just after
.+ # 1 or more any character but newline
$ # end of line
替代品:
$1 # content of group 1, i.e. "EngramEntry_AdobeCeiling_C"
截圖(之前):
截圖(之後):