title: Regex to stop processing after word is found
body: <p>I have a number of strings that have the following format:</p>
  
  <blockquote>
    <p>Sent to abc xxx zzzz address more words here</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>Sent to aaaaa gggggg dddddddddd mailbox more words here</p>
  </blockquote>
  
  <p>I would like to extract a substring that starts after "Sent to " and stops after "address" or "mailbox". For example, in first case the substring would be as so: "abc xxx zzzz address" and in second case, it would be: "aaaaa gggggg dddddddddd mailbox".</p>
  
  <p>The following expression is not working for me. It includes the "Sent to" and it continues till the end of string. I'd appreciate your feedback.</p>
  
  <pre><code>[Sent to ].*[address|mailbox])
  </code></pre>