Search
Plugins > Intrinsics 1.0.0 > URL > isValidHostnameOrIPAddress

Method isValidHostnameOrIPAddress(String hostOrIP)

Checks if the parameter is valid host name or IP address (both IPv4 and IPv6). Example use:
 new URL().isHostnameOrIPAddress(hostOrIP) 

Returns

boolean

Arguments

Name Type Description
hostOrIP String