Hi there;
I need a help with a problem I am trying to code around.
I need to take in a line - in the form "xxx $y, $y, $y". The line is always in this form. xxx can be any character, and the following $y's are $anynumber - seperated by commas.
The tokens may be seperated by no spaces, a single space, tabs, multiple spaces or a combination of both. There is always at least one spaxe seperating "xxx" from the first "$y", however.
I need to parse these into four arrays, but not sure where to start with the space-handling.
Any ideas?