added regex for exception