Short version: *Without using error handling, what's the simplest way to check that a string can be safely used as a variable name.
Long version...
Because I'm forced to run some code on AHK Basic, I can't catch/handle errors, so I need some defensive code to prevent the "variable name contains an illegal character" before it happens.
Here's the AHK rules on a legal variable name...
"Variable names may be up to 253 characters long and may consist of letters, numbers and the following punctuation: # _ @ $ ? [ ]"