Add ^$ to <ip> and <ip/mask> regular expressions