title: Using Python regex find words starting and ending with specific letters
body: <p>I don't use or do much text searching but have not been able to find an answer as to what the regex is to find all words starting with T and ending with T from a text file where each word is on a newline. Tried a number of suggestions from searches; the following finds all words starting with T and where T occurs next. However, I want to find where the LAST letter is T also, irrespective of how many T's occur between. Apologies if this is actually trivial, but after every combo I can find I have no result. I am unsure why <code>r'^T.*T$'</code> doesn't work.  </p>
  
  <pre><code>with open('/Users/../words.txt') as f:
      passage = f.read()
  words = re.findall(r'T.+T', passage)
  print(words)
  </code></pre>