add ip regular expression check

Change-Id: I44b5a7c6d268846f87d15f61154f382ab4131b12