notepad ++ line combine [cerrado]
Aug 15 2020
Tenemos este orden de línea
129
12
2020
5424180606943758
tenemos que ser así
5424180606943758|12|2020|129
cómo hacer esto en notepad ++ o en la aplicación onoter
Respuestas
Toto Aug 15 2020 at 19:28
- Ctrl+H
- Encontrar que:
(\d+)\R(\d+)\R(\d+)\R(\d+)\R?
- Reemplazar con:
$4|$3|$2|$1
- COMPROBAR Envolver
- COMPROBAR Expresión regular
- Replace all
Explicación:
(\d+) # group 1, 1 or more digits
\R # any kind of linebreak
(\d+) # group 2, 1 or more digits
\R # any kind of linebreak
(\d+) # group 3, 1 or more digits
\R # any kind of linebreak
(\d+) # group 4, 1 or more digits
\R # any kind of linebreak, optional
Reemplazo:
$4 # content of group 4 | # a pipe $3 # content of group 3
| # a pipe
$2 # content of group 2 | # a pipe $1 # content of group 1
Captura de pantalla (antes):

Captura de pantalla (después):
