I have a series of tab-delimited strings copied to the Windows Clipboard. I want to split these strings into arrays using the tab character.
Unit Dept_ID Name
CORP 0368 Admin
CORP 3945 Programmer
SESHAN 4596 Software Engineer
I'm trying to use StringSplit(), but I can't figure out how to use 'tab' as my delimiter. I've tried a few different methods, but none seem to work.
clipboard = %clipboard% ; Convert to plain text
StringSplit, MyArray, clipboard, `\t` ; Split string using tabs
MsgBox % "MyArray[1] = " . MyArray[1] ; BUG: Prints empty string
How can I split a tab-delimited string in AutoHotkey?