Use something like http://pegjs.org/ to parse the CREATE TABLE statement instead of a complex regex (which misses some scenarios)