relax regex, exception handling.