title: get table name from query using a regex
body: <p>I'm looking into finding a Pattern in order to get the table name for this type of SQL query;</p>
  
  <pre><code>INSERT INTO table(uuid,type) VALUES (?,?)
  </code></pre>
  
  <p>Here I want to get "table"</p>
  
  <p>I have a pattern but it's working only if there is no brackets like 
      INSERT INTO table VALUES (?,?)</p>
  
  <blockquote>
    <p>[from|into|update]\s+(?:\w+.)<em>(\w+)(\s</em>$|\s+(WHERE))</p>
  </blockquote>
  
  <p>Thanks</p>
  
  <p>NB : it's not the same pattern than in <a href="https://stackoverflow.com/questions/11401542/get-table-name-from-query">get table name from query</a></p>