Catching Exception & contains Regex