Java regular expressions for IPv4 and comma-separated list of integers.