Functiondojox.regexp.ipAddress

dojo.require("dojox.validate.regexp");
defined in dojox/validate/regexp.js

Supports 5 formats for IPv4: dotted decimal, dotted hex, dotted octal, decimal and hexadecimal. Supports 2 formats for Ipv6.

Usage

function (/*Object?*/ flags) (view source)
parametertypedescription
flagsObjectOptional. allowHybrid IPv6 address written as six groups of four hexadecimal digits followed by the usual 4 dotted decimal digit notation of IPv4. x:x:x:x:x:x:d.d.d.d