Since the regexp will actually be done by user, you must trap failure due to bad regexp.