Don't match unneeded parts in SQL parser regular expressions