07-30-2019 01:50 AM
I still have this kind of question...
If the number of consecutive space characters is undetermined, how to use this way to get space-split spreadsheet?
07-30-2019 02:07 AM
07-31-2019 01:11 AM
Hi GerdW,
Thanks to your reply.
I've tried the method from message #2 which use the function of "Search and Replace String".
As the first poster mentioned, it is very slow(almost costs 10 minutes) since the string size is more than 1 million in my text....
But if I use the "Spreadsheet String to Array" function by connecting an array of delimiter, it is fast.
So I wonder if there is a better way to deal with the undetermined number of space delimiter.
07-31-2019 01:59 AM
In the end what I did is to do a repeat cycle of "search and replace all" of "double spaces" with "single spaces" - until there's nothing
to replace - that way I know I only have single spaces left and also know I didn't eliminate any spaces that was needed. This was more robust than the array and fast enough for my files [the search and replace all function is pretty fast, so 1Mb should cause it to take 10min, my text file was 8Mb].
07-31-2019 02:06 AM
07-31-2019 02:33 AM
Very appreciated to massen and GerdW's help.
It is very nice way to solve my question, I didn't know the "regular expression" is so heavy-computing function to cause the very inefficient result.
I should take care of that in the future.
I'm sorry I can't set your reply as the best solution because I'm not the original poster, all I can do is give the kudos...
Should I create a new thread in the future even the question is the same?