Jul-21-2018, 11:56 AM
Hi
I have a list:
123;G-12;http//www.g.ch/bidule_12
456;G-422;http//www.g.ch/bidule_422
789;G-562;http//www.g.ch/bidule_562
breu
5555;G-0;http//www.g.ch/bidule_0
As a result, I want only these lines remaining in my csv.file:
breu
5555;G-0;http//www.g.ch/bidule_0
So, my python script is supposed to compare each element of my list with each line ; if they match, the line is deleted in the csv.file.
I tried (for a long time) loop + "replace" or "re.sub" with no success.
Any idea?
Thanks
I have a list:
['123;G-12;http//www.g.ch/bidule_12', '456;G-422;http//www.g.ch/bidule_422', '789;G-562;http//www.g.ch/bidule_562']I have a csv.file with following lines:
123;G-12;http//www.g.ch/bidule_12
456;G-422;http//www.g.ch/bidule_422
789;G-562;http//www.g.ch/bidule_562
breu
5555;G-0;http//www.g.ch/bidule_0
As a result, I want only these lines remaining in my csv.file:
breu
5555;G-0;http//www.g.ch/bidule_0
So, my python script is supposed to compare each element of my list with each line ; if they match, the line is deleted in the csv.file.
I tried (for a long time) loop + "replace" or "re.sub" with no success.
Any idea?
Thanks