update ip regular expression