I am trying to parse some data returned by a third-party application (TSV file). I have all the data carefully analyzed in each field (see. TSV file parsing ), but I don’t know how to format some fields.
Sometimes the data in the field is encapsulated as follows:
=T("[FIELD_DATA]")
(This is similar to Excel formatting).
When this happens, specific characters are escaped using CHAR (ASCII_NUM), and the rest of the string is also encapsulated, as in the above example, without the = sign, which appears only at the beginning of the field.
So, does anyone have any idea how I can parse fields that look like this:
=T("- Merge User Interface of Global Xtra Alert and EMT Alert")&CHAR(10)&T("- Toaster ?!")&CHAR(10)&T("")&CHAR(10)&T("")&CHAR(10)&T("None")&CHAR(10)&T("")&CHAR(10)&T("None")
(any number of CHAR / T groups ()).
I was thinking about regexing or looping a string, but I doubt the reality of this. Help someone?
source
share