fixed incorrect regex format exceptions