actually, that's not quite what I'm looking for. I realized that I'm not going to be able to do what I was trying and have instead restructured the problem by writing 2 grammars and combining/operating on them before running any matching. wes