Guus2005
AWF VIP
- Local time
- , 00:08
- Joined
- Jun 26, 2007
- Messages
- 2,642
I have a problem and i want to use REGEX to fix it.
Now i have two problems, i know.
The solution is simple:
Remove all double quotes not directly preceded or directly followed by a semicolon.
The problem is that i have 3000 csv files which need to be checked and corrected if the following occures:
When i import those in a table i get an error message on those lines
So i want to fix those files to look like this:
I hope you can help
Thanks for your time!
Now i have two problems, i know.
The solution is simple:
Remove all double quotes not directly preceded or directly followed by a semicolon.
The problem is that i have 3000 csv files which need to be checked and corrected if the following occures:
Code:
1;200;345;"Apotheker "Blue tongue"";"Apeldoorn";12;"ABCD12"
2;232;312;"Cafe "Blue Oyster";"Rotterdam";33;"DCBA21"
So i want to fix those files to look like this:
Code:
1;200;345;"Apotheker Blue tongue";"Apeldoorn";12;"ABCD12"
2;232;312;"Cafe Blue Oyster";"Rotterdam";33;"DCBA21"
I hope you can help
Thanks for your time!