add regex and transition table