resolve issues with regex constraints