experimenting with parsing RE terms