[IMP] allow more fine-grained control over what counts as error
[FIX] duck type checking for regex objects
Merge pull request #102 from hbrunn/whole_errormsg

[IMP] allow more fine-grained control over what counts as error