refactor and enable regex in grammar rule patterns