Regex matches now get merged into exact matches.

Also updated syntax doc to describe merging. Fixes #276.