title: Getting "Number of matching groups doesn't match the number of columns" error with a regular expression
body: <pre><code>CREATE EXTERNAL TABLE IF NOT EXISTS kibana (
      `class` string,
      `log.file.path` string,
      `message` string,
      `requestid` string)
  ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'
  WITH SERDEPROPERTIES ('input.regex' = &quot;^(\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01]))T(([01]?\\d|2[0-3]):([0-5]?\\d):([0-5]?\\d)):\\d{3}\\-\\d{4}.*(?&lt;=ID:)(.*?)(?=\\s) \\|([^|]*)$&quot;)
  LOCATION 's3://temp-athena-poc/'
  TBLPROPERTIES ('has_encrypted_data'='false');
  </code></pre>
  <p>Error:</p>
  <blockquote>
  <p>HIVE_CURSOR_ERROR: Number of matching groups doesn't match the number of columns</p>
  <p>This query ran against the &quot;default&quot; database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: d48ea089-02be-4884-a618-75b6a7af9dfe.</p>
  </blockquote>