fixed a bug with regular expressions missing the start symbol