Here is a brief excerpt from a string variable labeled results ...
2017-09-18 920.0100 922.0800 910.5999 915.0000 1294800
2017-09-15 924.6599 926.4899 916.3599 920.2899 2505400
2017-09-14 931.2500 932.7700 924.0000 925.1099 1397600
2017-09-13 930.6599 937.2500 929.8599 935.0900 1102600
2017-09-12 932.5900 933.4799 923.8610 932.0700 1134400
2017-09-11 934.2500 938.3800 926.9199 929.0800 1267000
2017-09-08 936.4899 936.9899 924.8800 926.5000 995100
2017-09-07 931.7299 936.4099 923.6199 935.9500 1212700
I am trying to break it into an array with each segment being around 2000 characters long and ending at the conclusion of a line. Currently, I am using the following code snippet but it splits each item in the array in the middle of a line.
var parts = results.match(/[\s\S]{1,2000}/g);