title: Javascript Regex to get specific string from two differently-formatted text blocks
body: <p>I need a single regex that I can use in Javascript that would allow me to extract <strong>just the tracking number</strong> from two different formats of plain text order confirmation emails: </p>
  
  <p>First confirmation email: </p>
  
  <p><em>(the tracking number is always the line right below "Tracking Number")</em></p>
  
  <pre><code>Tracking Number
  1ZA828Y12313205351
  </code></pre>
  
  <p>Second confirmation email:</p>
  
  <p><em>(the tracking number is always on the same line, after the colon and a (possibly) variable number of space characters)</em></p>
  
  <pre><code>Carrier Tracking Number :  582612345988
  </code></pre>
  
  <p>Also, just to clarify: The tracking numbers will always be any combination of capital letters and numbers (and will not necessarily start with "1Z"). </p>