Use regular expression
-Use regular expression to confirm the ip user inputted whether is
right or not.
-Use regular expression to find out the ip in logger