Description
Split at the final occurrence of nonempty prefix and parse a positive supplement index without leading zero.
Catalog identifiers and labels follow local formatting conventions. Splitting or recognizing a token's shape preserves structure without establishing that its identifier or classification is valid.
Split at the final occurrence of nonempty prefix and parse a positive supplement index without leading zero.
When to use this tool
Use Serial Enumeration Supplement Index when you need one explicit catalog-label parsing or formatting step.
How to use the tool and how it works
- Enter token, prefix. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read mainEnumeration, supplementIndex, hasSupplement. Inspect hasSupplement before interpreting the associated values.
Split at the final occurrence of nonempty prefix and parse a positive supplement index without leading zero. If absent, preserve token with index zero and hasSupplement false.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
| prefix | Prefix | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| mainEnumeration | Main Enumeration | Required. Text; maximum UTF-16 length 8192. |
| supplementIndex | Supplement Index | Required. Safe integer. |
| hasSupplement | Has Supplement | Required. Boolean. |
{
"input": {
"token": "12-S2",
"prefix": "-S"
},
"output": {
"mainEnumeration": "12",
"supplementIndex": 2,
"hasSupplement": true
}
} Limitations and assumptions
- Zero is an absence sentinel; the prefix may occur anywhere and the main enumeration is not validated.
- 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
Consult the cataloging scheme and source record before assigning semantic meaning or a filing order.
References
Similar or alternative tools
- Item Copy Suffix Index
Split label at the final nonempty separator, requiring a nonempty base and a positive decimal suffix without leading zero.
- Issue Combination Two Number Label
Require positive first and a strictly larger second, join them with separator, and mark consecutive only when second equals first + 1.