AnsweredAssumed Answered

Splitting strings that contain a space separator of different lengths

Question asked by BenSumner612127 on Jun 26, 2018
Latest reply on Jun 27, 2018 by BenSumner612127

Hi,

 

Using the Automic Scripting. I'm trying to split the string below 

 

"MplOpZipService                          Started         20180627 06:06:08.630  N/A"

 

into an array

 

["MplOpZipService ","Started","20180627","06:06:08.630","N/A"]

 

I have no issues doing this using STR_SPLIT (:FILL &STRINGS#[] = STR_SPLIT(&STRING#," ")) if the amount of blank spaces between elements was always constant.

Because the separator could be one or many blank spaces, I can't think of how to do this? 

 

If any one could point me in the right direction that would be fantastic.

 

Cheers

Ben 

Outcomes