
Ejemplo: la línea 1 es esta
Adobe Ceiling EngramEntry_AdobeCeiling_C 106 5 15
Quiero sacar todo excepto:
EngramEntry_AdobeCeiling_C
Respuesta1
Respuesta2
Para asegurarse de reemplazarsololíneas que contienen EngramEntry_AdobeCeiling_C
pero no blah_EngramEntry_AdobeCeiling_C_blah
, tienes que usarlímites de palabras:
- Ctrl+H
- Encontrar que:
^.+?\b(EngramEntry_AdobeCeiling_C)\b.+$
- Reemplazar con:
$1
- CONTROLAR caso de partido
- CONTROLAR Envolver alrededor
- CONTROLAR Expresión regular
- DESMARCAR
. matches newline
- Replace all
Explicación:
^ # 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
Reemplazo:
$1 # content of group 1, i.e. "EngramEntry_AdobeCeiling_C"
Captura de pantalla (antes):
Captura de pantalla (después):