Description
Split the unbracketed literal at its sole percent sign.
A network prefix divides an address into higher prefix bits and lower address bits. Zone labels and textual address tokens introduce separate representation rules.
Split the unbracketed literal at its sole percent sign.
When to use this tool
Use IPv6 Zone Token Splitter when you need a prefix-field calculation or a controlled address-token split.
How to use the tool and how it works
- Enter literal. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read addressToken, zoneToken, hasZone. Inspect hasZone before interpreting the associated values.
Split the unbracketed literal at its sole percent sign. Reject empty input, brackets, multiple percent signs, or an empty address or zone around a separator; return an empty zone when absent.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| literal | Literal | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| addressToken | Address Token | Required. Text; maximum UTF-16 length 8192. |
| zoneToken | Zone Token | Required. Text; maximum UTF-16 length 8192. |
| hasZone | Has Zone | Required. Boolean. |
{
"input": {
"literal": "fe80::1%eth0"
},
"output": {
"addressToken": "fe80::1",
"zoneToken": "eth0",
"hasZone": true
}
} Limitations and assumptions
- This is token splitting only: it does not validate IPv6 syntax, interface existence, or URL percent encoding.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use a full address parser and the relevant allocation or interface metadata to validate actual addressing.
References
Similar or alternative tools
- IPv6 Prefix Subnet ID Field
Extract the bits between globalPrefixLength and subnetPrefixLength with exact integer shifts and masking, returning subnetId as decimal text and the field width.
- IPv6 Prefix Host Bit Count
Subtract prefixLength from 128 and calculate 2 raised to that host-bit count using exact integers.