Fix REVOKE and regex problem