notepad ++ line combina [chiuso]
Aug 15 2020
Abbiamo questo ordine di riga
129
12
2020
5424180606943758
dobbiamo essere in questo modo
5424180606943758|12|2020|129
come farlo in Notepad ++ o nell'app Onoter
Risposte
Toto Aug 15 2020 at 19:28
- Ctrl+H
- Trovare cosa:
(\d+)\R(\d+)\R(\d+)\R(\d+)\R?
- Sostituirlo con:
$4|$3|$2|$1
- CONTROLLA Avvolgi
- CONTROLLA Espressione regolare
- Replace all
Spiegazione:
(\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
Sostituzione:
$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
Screenshot (prima):

Screenshot (dopo):
