Fixed regex exceptions