Im trying to extract a number from a string

the string could be any of the following

any-text-goes-here-t8.html
some-other-text-could-be-here-t378.html
and-some-different-text-could-be-here-t6867.html

im trying to extract the number between the t and .html at the end

any help greatly appreciated