Description
Construct suppliedPrefix plus an optional required separator and test code's exact prefix.
Source-scoped cultural and historical records preserve an edition, naming convention, or local identifier. Literal agreement is useful bookkeeping but does not establish interpretation, authenticity, or authority.
Construct suppliedPrefix plus an optional required separator and test code's exact prefix.
When to use this tool
Use Public Municipal Code Prefix when you need a precise source-token or range consistency check.
How to use the tool and how it works
- Enter code, suppliedPrefix, requireSeparator, separator. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read prefixMatches, suffix. Inspect prefixMatches before interpreting the associated values.
Construct suppliedPrefix plus an optional required separator and test code's exact prefix. Return the remaining suffix on a match, otherwise an empty suffix.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| code | Code | Required. Text; maximum UTF-16 length 8192. |
| suppliedPrefix | Supplied Prefix | Required. Text; maximum UTF-16 length 8192. |
| requireSeparator | Require Separator | Required. Boolean. |
| separator | Separator | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| prefixMatches | Prefix Matches | Required. Boolean. |
| suffix | Suffix | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"code": "AB-123",
"suppliedPrefix": "AB",
"requireSeparator": true,
"separator": "-"
},
"output": {
"prefixMatches": true,
"suffix": "123"
}
} Limitations and assumptions
- An empty suffix may also be a successful match; read prefixMatches and verify actual municipal code rules separately.
- 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 source edition and relevant community or scholarly guidance before interpreting or reusing the material.
References
Similar or alternative tools
- Persistent Identifier Resolver Prefix Token
Append encodeURIComponent(identifier) to the prefix as url.
- Identifier Namespace Version Token
Split at the first namespace separator and the final version separator in the tail, requiring nonempty resulting components.