E
E
Egor Berdnikov2019-11-24 20:14:14
PHP
Egor Berdnikov, 2019-11-24 20:14:14

How to convert columns to rows?

Hello forum. I came here not by chance, they recommended it as a competent and adequate community. I myself am not doing the first, but still not very successful steps towards making money on the Internet.
The essence of the problem. There is a database of this format:
e-mail: [email protected]
02380199869
john
smit
e-mail: [email protected]
+12380199869
john
smit
e-mail: [email protected]
+3828539761
john
smit
The database is not small, but with a large the number of takes, for the convenience of working with it, I would like to put it in this form:
e-mail: [email protected]
: 02380199869: john: smit
e-mail: [email protected]: +3828539761: john: smit
I myself am a complete zero in this subject, except that I work a little with notepad, total commander. I will be grateful if I find a solution here.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-11-25
@saboteur_kiev

You open your file in notepad ++,
menu Search - Replace
write in Find: (.*@.*)\n(.*)\n(.*)\n(.*)\n
write in Replace with: $1;$2;$3;$4
Press replace or Replace all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question