Report abuse

<%=
  valid = true
  ips.each do |ip|
    valid = false unless ip =~ /([a-f0-9]{1,2}:){5}[a-f0-9]{1,2}/
  end

  return valid
%>