Good Morning,
I'm in need of some assistance. I have a text input that is 19,012 characters long that does not have any line breaks. Screenshot provided below and example attached:
The words "FROM", "TO", & "FOR" need to be replaced with a column break and the word "HOURS" needs to be replaced with a line break in order to properly format this information.
Problem #1
-How should i input this data? i have tried using the input tool but it always asks to parse the data first. I have tried ingesting as a csv with a \0 delimiter as suggested in some threads but i get a field truncation warning when i do this and it cuts a majority of my data out.
Problem #2
-Im assuming the most efficient way of parsing the data is going to be REGEX. I am not very well versed in REGEX and am curious how one would go about properly parsing this data via REGEX.
Thanks!
Steve
Solved! Go to Solution.
i will take a look at this for you, but I'm sure that I'll have company. I'll likely read it as CSV with \0 as a delimiter, but I'll also change the default 254 length to 20,000. Then I will avoid RegEx and use replace() commands to get a PIPE in as a delimiter. Then figure out how to handle line breaks.
If when I look at the data I find a simple fixed width solution, I'll switch to that path.
Cheers,
Mark
I converted the terms to | and HOURS to ^. I was then able to simply use the text to columns tool. You'll see that in the input tool I set the field length and set the first row to data.
No RegEx formulas were used.
Cheers,
Mark
This time I have a computer handy to solve along with you. Hopefully the pic is something that you can put your seal of approval on and we can share in this solve.
Cheers,
Mark
Excellent! this perfect. Thank you so much!