Fix 16: correction on end regex for predicates.

Fixes #16.