![]() ![]() |
Reference Type: Supported, Category: IP Address Functions, ICR#: 5844
The $$VALIDATE^XLFIPV extrinsic function validates the format of an Internet Protocol (IP) address (either IPv4 or IPv6).
$$VALIDATE^XLFIPV(ip)
ip: |
(required) IPv4 or IPv6 address (string; in quotes) to be validated. |
returns: |
Returns:
|
>S X=$$VALIDATE^XLFIPV("10.126.3.1") >W X 1 |
>S X=$$VALIDATE^XLFIPV("10.999.3.1") >W X 0 |
>S X=$$VALIDATE^XLFIPV("2001:db8::8a2e:370:7334") >W X 1 |
>S X=$$VALIDATE^XLFIPV("2001:db8::8g2h:370:7334") >W X 0 |