Display error message when the user's regular expression has syntax error

See GH-12