Wrap regex search in try block
Merge pull request #21 from dsandstrom/fix-regex-error

Wrap regex search in try block