This file has about 50 diffeent people in it, and all of the lines look like the below.
ADAMS JOEL E 03405 005 QUAL 13 NOV 04
I need to break this variable down into 3 different sections (NAME, STATUS (QUAL), AND DATE.
If you change the format of the file (e.g.)
ADAMS JOEL E.03405 005 QUAL.13 NOV 04
You could use the tokens more efficiently, looking for a "." (ascii 46) instead of a space (ascii 32).
Otherwise, you need to count the tokens until the first character is a digit. This requires
1. finding the total number of tokens
2. looping from 1 to (while counter is less than number of tokens or until token is found
2a. check the first character of that particular token (regex)
3. taking tokens 1-(counter-1) as your name.
I can't write the corresponding code at the moment, but each step is easily achieved using one or two mIRC scripting commands.
Personallly, I think using a different delimiter would be easier.
Cheers,
DK