strsplit use <TAB> separator key
"strsplit" macro command splits a string by "one delimiter character." https://ttssh2.osdn.jp/manual/4/en/macro/command/strsplit.html
If separated by <tab> character, 2nd part of line 2 is ""(empty string.) I think this behavior is not wrong.
To ignore empty column, check length of groupmatchstr2 variable, and skip it.
host = groupmatchstr1 strlen groupmatchstr2 if result > 0 then opt1 = groupmatchstr2 opt2 = groupmatchstr3 else opt1 = groupmatchstr3 opt2 = groupmatchstr4 endif
When using strsplit function separator key is tab key
How to use LINE 2's groupmatchstr2 to get 1 and groupmatchstr3 to get 2