Hello,
(Yes, I am very new with regular expressions and have done several searches for an answer, but have not found one. I do appreciate your time and help.)
I am using TextPad to modify a file.
The file contains several fields. When the field is populated, it is "string", "string", "string" (example).
If the field is not populated, it is empty, as in , , , , -- no quote marks, only commas, no space in between commas.
I need to use TextPad and run a Regular expression to:
1. Add quote marks in each of the -not- populated fields.
2. Add quote marks in any field where there is a string, but no quotes, and keep the comma.
3. Not change any field where there is already "string" -- keep the quotes and keep the string.
So, I need to turn a line like this:
10.14.14.24, "dd-excsql", , , , ,
Into a line like this:
"10.14.14.24", "dd-excsql", "", "", "", "",
Thank you kindly.