Handle ips and reg.exp.