T
T
Tan Chatn2015-05-30 18:39:14
Python
Tan Chatn, 2015-05-30 18:39:14

How to write a script for a clean mail database?

Hello user. Little time and no experience in this, although as elsewhere. There is a file base_email.txt and in it all sorts of quotes dots and ip. Task: remove all the nonsense so that only mail remains
From:

["[email protected]","active","available","2015-02-12 14:14:54","00.000.00.000","","0.0.0.0","1111114","2014-05-12 18:00:00","","","","","","0.0.0.0","","","","","Pavel","Durov",""]
["[email protected]","active","available","2015-02-12 14:14:54","00.000.00.000","","0.0.0.0","1111114","2014-05-12 18:00:00","","","","","","0.0.0.0","","","","","Thank","You",""]

AT
[email protected]
[email protected]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2015-05-30
@DUKAEV

https://regex101.com/r/kG3zE4/1
regex that will select most valid soaps.
then a bit of Google on the subject of how to apply it in the tags indicated in the question, and everything will work out.

A
AVKor, 2015-05-31
@AVKor

awk -F\" '{print $2}' base_email.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question