Quite easy using a negative lookahead: ^[tT](?!0{1,3}$)[0-9]{1,3}$
Explanation
^ # match begin of string
[tT] # match t or T
(?! # negative lookahead, check if there is no ...
0{1,3} # match 0, 00 or 000
$ # match end of string
) # end of lookahead
[0-9]{1,3} # match a digit one or three times
$ # match end of string