There are no Thomas Danks with a Lancashire Regiment and I doubt he'd have been in a Yorkshire one at that time (although they could be allocated to any one).
With no surviving service or pension records for him he could have been in any regiment - 2 are in Yorkshire regiments, 4 in Scottish ones, 2 in Royal Field Artillery, 1 Royal Engineers, and 1 Royal Army Medical Corps. Unless someone in your family has some information there really is no way of second-guessing which regiment he was in.
Annette