I am new here, and I am new with TCL as well. I like all the tools that TCL has, and I was attempting to use regexp or string match to do the following.
I have a file name "80-40-XXYY" where XX are numbers from 0-9 and YY are letter from A-Z (case sensitive).
string match "*80-40-[0-9][0-9][A-Z][A-Z]", but I get an error for unknown command "0-9"...
I also tried regexp with the same format, but I get the same error... can anyone please help me with the correct format? I saw some similar questions but none that I could correctly apply. Also, if anyone can tell me if its better to use regexp or string match for this comparison, that would be greatly appreciated as well. Thanks!