Author: Bill Woodger
Subject: Reply to: Replace function
Posted: Mon Sep 12, 2016 11:21 am (GMT 5.5)
In a CSV quotes are used to "protect" data which contains values which otherwise would confuse the processing of the CSV (like values of " and ,).
If the first byte of a field is a '"', you need to remove it, and you need to remove the final byte of the data (which will also be a '"').
I'd not involve INSPECT (which is not a function, please note) in that. Just a small bit of code.
Subject: Reply to: Replace function
Posted: Mon Sep 12, 2016 11:21 am (GMT 5.5)
In a CSV quotes are used to "protect" data which contains values which otherwise would confuse the processing of the CSV (like values of " and ,).
If the first byte of a field is a '"', you need to remove it, and you need to remove the final byte of the data (which will also be a '"').
I'd not involve INSPECT (which is not a function, please note) in that. Just a small bit of code.