How to use the split method with a non-constant delimiter
Good day,
I'm trying to read a text file by extracting specific data that are in one line and excluding others on the same line. The data I want to extract are separated by the 'space' delimiter but unfortunately this delimiter was not used uniformly for the entire line, I mean that sometimes data in a line will be separated by a single space for some and sometimes two to three spaces for others.
How do I change the delimiter for the split method I'm using please so that no matters the space between the data it extracts the correct ones?
Thanks