This should be easy but I'm stumped. I am doing a Directory.GetFiles and want to only find files beginning with GP, having a character for the third spot, and ending in 5 digits plus an extension of ".inh". It must be exactly that.
So for example, a filename might be GPW12345.INH.
I'd want to not find files such as GPW12345ABCDEFG.INH and GPWABCDE.INH.
I'd think a mask such as "GP?#####.INH" would work but it does not. I tried "GP??????.INH" and it returns files longer than 8+3 in length.
How can I do this?