Is valid IPv6(Is valid IPv6(是否为有效 IPv6 地址))¶
Supported in: Batch
Returns true if the input is a valid IPv6 address.
Expression categories: Cyber
Declared arguments¶
- Expression: IP address to check.
Expression\
Output type: Boolean
Examples¶
Example 1: Base case¶
Argument values:
- Expression:
ip
| ip | Output |
|---|---|
| 001:0db8:85a3:0000:0000:8a2e:0370:7334 | true |
| 2001\:db8:85a3:0:0:8A2E:0370:7334 | true |
| 2001\:db8:85a3::8a2e:370:7334 | true |
| ::1 | true |
| fe80:: | true |
| :: | true |
| 0:0:0:0:0:0:0:1 | true |
| 2001\:db8:: | true |
| ::ffff:192.0.2.128 | true |
| 2001\:db8:0:0:1:0:0:1 | true |
| 1234:5678:9abc\:def0:1234:5678:9abc:def0 | true |
| abcd\:ef01:2345:6789\:abcd\:ef01:2345:6789 | true |
| 2001\:db8:1234:0000:0000:0000:0000:0001 | true |
| 2001\:db8:1234::1 | true |
| 2001\:db8:85a3::8a2e:37023:7334 | false |
| 2001\:db8:85a3::8a2e::7334 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334:1234 | false |
| 2001\:db8:85a3 | false |
| 2001\:db8:85a3::8a2e:370g:7334 | false |
| ::ffff:192.0.2.999 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334: | false |
| :2001\:db8:85a3:0:0:8A2E:0370:7334 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334:: | false |
| GGGG\:db8:85a3:0:0:8A2E:0370:7334 | false |
| 2001-db8-85a3-0-0-8A2E-0370-7334 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334/64 | false |
| 2001\:db8::/32 | false |
| empty string | false |
| false | |
| 192.168.1.1 | false |
| null | false |
中文翻译¶
Is valid IPv6(是否为有效 IPv6 地址)¶
支持:批处理(Batch)
如果输入是有效的 IPv6 地址,则返回 true。
表达式类别: 网络安全(Cyber)
声明的参数¶
- 表达式(Expression): 待检查的 IP 地址。
表达式\
输出类型: 布尔值(Boolean)
示例¶
示例 1:基本情况¶
参数值:
- 表达式(Expression):
ip
| ip | 输出(Output) |
|---|---|
| 001:0db8:85a3:0000:0000:8a2e:0370:7334 | true |
| 2001\:db8:85a3:0:0:8A2E:0370:7334 | true |
| 2001\:db8:85a3::8a2e:370:7334 | true |
| ::1 | true |
| fe80:: | true |
| :: | true |
| 0:0:0:0:0:0:0:1 | true |
| 2001\:db8:: | true |
| ::ffff:192.0.2.128 | true |
| 2001\:db8:0:0:1:0:0:1 | true |
| 1234:5678:9abc\:def0:1234:5678:9abc:def0 | true |
| abcd\:ef01:2345:6789\:abcd\:ef01:2345:6789 | true |
| 2001\:db8:1234:0000:0000:0000:0000:0001 | true |
| 2001\:db8:1234::1 | true |
| 2001\:db8:85a3::8a2e:37023:7334 | false |
| 2001\:db8:85a3::8a2e::7334 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334:1234 | false |
| 2001\:db8:85a3 | false |
| 2001\:db8:85a3::8a2e:370g:7334 | false |
| ::ffff:192.0.2.999 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334: | false |
| :2001\:db8:85a3:0:0:8A2E:0370:7334 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334:: | false |
| GGGG\:db8:85a3:0:0:8A2E:0370:7334 | false |
| 2001-db8-85a3-0-0-8A2E-0370-7334 | false |
| 2001\:db8:85a3:0:0:8A2E:0370:7334/64 | false |
| 2001\:db8::/32 | false |
| 空字符串 | false |
| false | |
| 192.168.1.1 | false |
| null | false |