title: Regular Expression to parse Query Output
body: <p>I have a need to execute a metadata query which will dump a list of tables into a file.  However, I need a way to eliminate all formatting besides the tableId itself.  Can this be done through a regex?   Appreciate all help in advance.  </p>
  
  <pre><code>+-------------------------------------+-------+
  |               tableId               | Type  |
  +-------------------------------------+-------+
  | t_margins                           | TABLE |
  | t_rev_test                          | TABLE |
  | t_rev_share                         | TABLE |
  </code></pre>