Wrap regex search in try block

Fixes #15